rtcpfeedback.go 851 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. package webrtc
  4. const (
  5. // TypeRTCPFBTransportCC ..
  6. TypeRTCPFBTransportCC = "transport-cc"
  7. // TypeRTCPFBGoogREMB ..
  8. TypeRTCPFBGoogREMB = "goog-remb"
  9. // TypeRTCPFBACK ..
  10. TypeRTCPFBACK = "ack"
  11. // TypeRTCPFBCCM ..
  12. TypeRTCPFBCCM = "ccm"
  13. // TypeRTCPFBNACK ..
  14. TypeRTCPFBNACK = "nack"
  15. )
  16. // RTCPFeedback signals the connection to use additional RTCP packet types.
  17. // https://draft.ortc.org/#dom-rtcrtcpfeedback
  18. type RTCPFeedback struct {
  19. // Type is the type of feedback.
  20. // see: https://draft.ortc.org/#dom-rtcrtcpfeedback
  21. // valid: ack, ccm, nack, goog-remb, transport-cc
  22. Type string
  23. // The parameter value depends on the type.
  24. // For example, type="nack" parameter="pli" will send Picture Loss Indicator packets.
  25. Parameter string
  26. }