client consumes provided track

This commit is contained in:
David Zhao
2020-11-13 12:31:01 -08:00
parent 256328c4ff
commit c618f8c42f
13 changed files with 388 additions and 211 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ const (
type MediaEngine struct {
webrtc.MediaEngine
feedbackTypes []webrtc.RTCPFeedback
tCCExt int
TCCExt int
}
// PopulateFromSDP finds all codecs in sd and adds them to m, using the dynamic
@@ -40,7 +40,7 @@ func (e *MediaEngine) PopulateFromSDP(sd webrtc.SessionDescription) error {
for _, att := range md.Attributes {
if att.Key == sdp.AttrKeyExtMap && strings.HasSuffix(att.Value, sdp.TransportCCURI) {
e.tCCExt, _ = strconv.Atoi(att.Value[:1])
e.TCCExt, _ = strconv.Atoi(att.Value[:1])
break
}
}