github.com/pion/webrtc/v3@v3.2.24/offeransweroptions.go (about) 1 // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 2 // SPDX-License-Identifier: MIT 3 4 package webrtc 5 6 // OfferAnswerOptions is a base structure which describes the options that 7 // can be used to control the offer/answer creation process. 8 type OfferAnswerOptions struct { 9 // VoiceActivityDetection allows the application to provide information 10 // about whether it wishes voice detection feature to be enabled or disabled. 11 VoiceActivityDetection bool 12 } 13 14 // AnswerOptions structure describes the options used to control the answer 15 // creation process. 16 type AnswerOptions struct { 17 OfferAnswerOptions 18 } 19 20 // OfferOptions structure describes the options used to control the offer 21 // creation process 22 type OfferOptions struct { 23 OfferAnswerOptions 24 25 // ICERestart forces the underlying ice gathering process to be restarted. 26 // When this value is true, the generated description will have ICE 27 // credentials that are different from the current credentials 28 ICERestart bool 29 }