From 92df4bf0ec6d401827a6dbaa5b8be6d4d4a6a3d3 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Mon, 1 Apr 2024 13:21:10 -0400 Subject: [PATCH] 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 --- peerconnection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peerconnection.go b/peerconnection.go index dfafbf10c1..5e2fba24cf 100644 --- a/peerconnection.go +++ b/peerconnection.go @@ -2318,6 +2318,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 { @@ -2390,6 +2391,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 {