Merge pull request #25 from AlexxIT/plan-b-fallback

Adds support SDP Plan B fallback
This commit is contained in:
Andrey Semochkin 2021-07-28 17:11:53 +03:00 committed by GitHub
commit 4453d7a3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}