streaminfo.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. package interceptor
  2. // RTPHeaderExtension represents a negotiated RFC5285 RTP header extension.
  3. type RTPHeaderExtension struct {
  4. URI string
  5. ID int
  6. }
  7. // StreamInfo is the Context passed when a StreamLocal or StreamRemote has been Binded or Unbinded
  8. type StreamInfo struct {
  9. ID string
  10. Attributes Attributes
  11. SSRC uint32
  12. PayloadType uint8
  13. RTPHeaderExtensions []RTPHeaderExtension
  14. MimeType string
  15. ClockRate uint32
  16. Channels uint16
  17. SDPFmtpLine string
  18. RTCPFeedback []RTCPFeedback
  19. }
  20. // RTCPFeedback signals the connection to use additional RTCP packet types.
  21. // https://draft.ortc.org/#dom-rtcrtcpfeedback
  22. type RTCPFeedback struct {
  23. // Type is the type of feedback.
  24. // see: https://draft.ortc.org/#dom-rtcrtcpfeedback
  25. // valid: ack, ccm, nack, goog-remb, transport-cc
  26. Type string
  27. // The parameter value depends on the type.
  28. // For example, type="nack" parameter="pli" will send Picture Loss Indicator packets.
  29. Parameter string
  30. }