Skip to content

Commit a572d90

Browse files
committed
Add PayloadType for FEC and RTX also
We don't want any SDP dependence/logic in this repo
1 parent c6a7ea8 commit a572d90

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

streaminfo.go

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ type RTPHeaderExtension struct {
1111

1212
// StreamInfo is the Context passed when a StreamLocal or StreamRemote has been Binded or Unbinded
1313
type StreamInfo struct {
14-
ID string
15-
Attributes Attributes
16-
SSRC uint32
17-
SSRCRetransmission uint32
18-
SSRCForwardErrorCorrection uint32
19-
PayloadType uint8
20-
RTPHeaderExtensions []RTPHeaderExtension
21-
MimeType string
22-
ClockRate uint32
23-
Channels uint16
24-
SDPFmtpLine string
25-
RTCPFeedback []RTCPFeedback
14+
ID string
15+
Attributes Attributes
16+
SSRC uint32
17+
SSRCRetransmission uint32
18+
SSRCForwardErrorCorrection uint32
19+
PayloadType uint8
20+
PayloadTypeRetransmission uint8
21+
PayloadTypeForwardErrorCorrection uint32
22+
RTPHeaderExtensions []RTPHeaderExtension
23+
MimeType string
24+
ClockRate uint32
25+
Channels uint16
26+
SDPFmtpLine string
27+
RTCPFeedback []RTCPFeedback
2628
}
2729

2830
// RTCPFeedback signals the connection to use additional RTCP packet types.

0 commit comments

Comments
 (0)