From 4c25aa67f41b5e2763f52eaab4a731189a4a1667 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 5270ffe2453..1f0a7d1591b 100644 --- a/peerconnection.go +++ b/peerconnection.go @@ -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 { @@ -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 {