offeransweroptions.go 989 B

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