Adds support SDP Plan B fallback
This commit is contained in:
parent
5b25bda1a0
commit
09ed0e1f30
@ -93,7 +93,9 @@ func (element *Muxer) WriteHeader(streams []av.CodecData, sdp64 string) (string,
|
|||||||
Type: webrtc.SDPTypeOffer,
|
Type: webrtc.SDPTypeOffer,
|
||||||
SDP: string(sdpB),
|
SDP: string(sdpB),
|
||||||
}
|
}
|
||||||
peerConnection, err := element.NewPeerConnection(webrtc.Configuration{})
|
peerConnection, err := element.NewPeerConnection(webrtc.Configuration{
|
||||||
|
SDPSemantics: webrtc.SDPSemanticsUnifiedPlanWithFallback,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user