webrtc: support Chrome versions older than M72 (#2621) (#2814)

This commit is contained in:
Alessandro Ros 2023-12-16 18:39:36 +01:00 committed by GitHub
parent 89560c19a0
commit 94953f5d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -427,6 +427,8 @@ class Transmitter {
onIceServers(res) {
this.pc = new RTCPeerConnection({
iceServers: linkToIceServers(res.headers.get('Link')),
// https://webrtc.org/getting-started/unified-plan-transition-guide
sdpSemantics: 'unified-plan',
});
this.pc.onicecandidate = (evt) => this.onLocalCandidate(evt);

View File

@ -162,6 +162,8 @@ class WHEPClient {
onIceServers(res) {
this.pc = new RTCPeerConnection({
iceServers: linkToIceServers(res.headers.get('Link')),
// https://webrtc.org/getting-started/unified-plan-transition-guide
sdpSemantics: 'unified-plan',
});
const direction = "sendrecv";