Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions streaminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type StreamInfo struct {
Channels uint16
SDPFmtpLine string
RTCPFeedback []RTCPFeedback
Codecs []RTPCodecParameters
}

// RTCPFeedback signals the connection to use additional RTCP packet types.
Expand All @@ -39,3 +40,17 @@ type RTCPFeedback struct {
// For example, type="nack" parameter="pli" will send Picture Loss Indicator packets.
Parameter string
}

// RTPCodecParameters is a sequence containing the media codecs that an RtpSender
// will choose from, as well as entries for RTX, RED and FEC mechanisms. This also
// includes the PayloadType that has been negotiated
//
// https://w3c.github.io/webrtc-pc/#rtcrtpcodecparameters
type RTPCodecParameters struct {
MimeType string
ClockRate uint32
Channels uint16
SDPFmtpLine string
RTCPFeedback []RTCPFeedback
PayloadType uint8
}
Loading