Skip to content

Commit 4c25aa6

Browse files
committed
Include msid-semantic in Session Attributes
Chrome doesn't include the msid when responding to recvonly transceivers See crbug[0] for discussion [0] https://issues.chromium.org/u/1/issues/328522463
1 parent b84753e commit 4c25aa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

peerconnection.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,7 @@ func (pc *PeerConnection) generateUnmatchedSDP(transceivers []*RTPTransceiver, u
22982298
if err != nil {
22992299
return nil, err
23002300
}
2301+
d.Attributes = append(d.Attributes, sdp.Attribute{Key: sdp.AttrKeyMsidSemantic, Value: "WMS*"})
23012302

23022303
iceParams, err := pc.iceGatherer.GetLocalParameters()
23032304
if err != nil {
@@ -2370,6 +2371,7 @@ func (pc *PeerConnection) generateMatchedSDP(transceivers []*RTPTransceiver, use
23702371
if err != nil {
23712372
return nil, err
23722373
}
2374+
d.Attributes = append(d.Attributes, sdp.Attribute{Key: sdp.AttrKeyMsidSemantic, Value: "WMS*"})
23732375

23742376
iceParams, err := pc.iceGatherer.GetLocalParameters()
23752377
if err != nil {

0 commit comments

Comments
 (0)