offeransweroptions.go 887 B

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