rtcpfeedback.go 749 B

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