From a572d90e0e4e31b30d71e58c9d8d30d104f4385f Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Fri, 4 Oct 2024 20:37:07 -0400 Subject: [PATCH] Add PayloadType for FEC and RTX also We don't want any SDP dependence/logic in this repo --- streaminfo.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/streaminfo.go b/streaminfo.go index 7ca7362a..1338fe50 100644 --- a/streaminfo.go +++ b/streaminfo.go @@ -11,18 +11,20 @@ type RTPHeaderExtension struct { // StreamInfo is the Context passed when a StreamLocal or StreamRemote has been Binded or Unbinded type StreamInfo struct { - ID string - Attributes Attributes - SSRC uint32 - SSRCRetransmission uint32 - SSRCForwardErrorCorrection uint32 - PayloadType uint8 - RTPHeaderExtensions []RTPHeaderExtension - MimeType string - ClockRate uint32 - Channels uint16 - SDPFmtpLine string - RTCPFeedback []RTCPFeedback + ID string + Attributes Attributes + SSRC uint32 + SSRCRetransmission uint32 + SSRCForwardErrorCorrection uint32 + PayloadType uint8 + PayloadTypeRetransmission uint8 + PayloadTypeForwardErrorCorrection uint32 + RTPHeaderExtensions []RTPHeaderExtension + MimeType string + ClockRate uint32 + Channels uint16 + SDPFmtpLine string + RTCPFeedback []RTCPFeedback } // RTCPFeedback signals the connection to use additional RTCP packet types.