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
2 changed files with 4 additions and 0 deletions
@@ -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);
+2
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";