forked from External/mediamtx
parent
89560c19a0
commit
94953f5d22
2 changed files with 4 additions and 0 deletions
|
|
@ -427,6 +427,8 @@ class Transmitter {
|
||||||
onIceServers(res) {
|
onIceServers(res) {
|
||||||
this.pc = new RTCPeerConnection({
|
this.pc = new RTCPeerConnection({
|
||||||
iceServers: linkToIceServers(res.headers.get('Link')),
|
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);
|
this.pc.onicecandidate = (evt) => this.onLocalCandidate(evt);
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,8 @@ class WHEPClient {
|
||||||
onIceServers(res) {
|
onIceServers(res) {
|
||||||
this.pc = new RTCPeerConnection({
|
this.pc = new RTCPeerConnection({
|
||||||
iceServers: linkToIceServers(res.headers.get('Link')),
|
iceServers: linkToIceServers(res.headers.get('Link')),
|
||||||
|
// https://webrtc.org/getting-started/unified-plan-transition-guide
|
||||||
|
sdpSemantics: 'unified-plan',
|
||||||
});
|
});
|
||||||
|
|
||||||
const direction = "sendrecv";
|
const direction = "sendrecv";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue