Adds support SDP Plan B fallback

This commit is contained in:
Alexey Khit 2021-07-28 16:50:21 +03:00
parent 5b25bda1a0
commit 09ed0e1f30

View File

@ -93,7 +93,9 @@ func (element *Muxer) WriteHeader(streams []av.CodecData, sdp64 string) (string,
Type: webrtc.SDPTypeOffer,
SDP: string(sdpB),
}
peerConnection, err := element.NewPeerConnection(webrtc.Configuration{})
peerConnection, err := element.NewPeerConnection(webrtc.Configuration{
SDPSemantics: webrtc.SDPSemanticsUnifiedPlanWithFallback,
})
if err != nil {
return "", err
}