streaminfo.go 1.1 KB

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