Skip to content

Commit

Permalink
Include msid-semantic in Session Attributes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sean-Der committed Apr 1, 2024
1 parent b84753e commit 4c25aa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peerconnection.go
Expand Up @@ -2298,6 +2298,7 @@ func (pc *PeerConnection) generateUnmatchedSDP(transceivers []*RTPTransceiver, u
if err != nil {
return nil, err
}
d.Attributes = append(d.Attributes, sdp.Attribute{Key: sdp.AttrKeyMsidSemantic, Value: "WMS*"})

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

iceParams, err := pc.iceGatherer.GetLocalParameters()
if err != nil {
Expand Down

0 comments on commit 4c25aa6

Please sign in to comment.