1
0
Fork 0
forked from External/mediamtx

remove sendrecv comment

This commit is contained in:
aler9 2022-12-19 22:13:54 +01:00
parent 96519ac23c
commit ac371d8dca

View file

@ -96,10 +96,7 @@ class Receiver {
document.getElementById("video").srcObject = new MediaStream([evt.track]);
};
// use sendrecv for firefox
// https://github.com/pion/webrtc/issues/717#issuecomment-507990273
// https://github.com/pion/example-webrtc-applications/commit/c641b530a001eb057d8b481185c50bf67d1931b4
const direction = "sendrecv"; // (isFirefox) ? "sendrecv" : "recvonly";
const direction = "sendrecv";
this.pc.addTransceiver("video", { direction });
this.pc.addTransceiver("audio", { direction });