Browse Source

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

pull/2815/head
Alessandro Ros 1 year ago committed by GitHub
parent
commit
94953f5d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/servers/webrtc/publish_index.html
  2. 2
      internal/servers/webrtc/read_index.html

2
internal/servers/webrtc/publish_index.html

@ -427,6 +427,8 @@ class Transmitter { @@ -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
internal/servers/webrtc/read_index.html

@ -162,6 +162,8 @@ class WHEPClient { @@ -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";

Loading…
Cancel
Save