summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-16 02:03:54 +0300
committerMaxim Devaev <[email protected]>2022-07-16 02:03:54 +0300
commit1ca30457802fa14cf2c54685f4608a67eeecd8f1 (patch)
treec122384bb4b22d7d1e2cb3cbc673061e12a32d44 /web
parent9f289914e90011208a54292d43208c6bd1a0b9b9 (diff)
playoutDelayHint = 0
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/stream.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index f472a7dd..4c835d6b 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -218,6 +218,13 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
__setAudioEnabled(!!stream.getAudioTracks().length);
_Janus.attachMediaStream($("stream-video"), stream);
__startInfoInterval();
+ if (__handle && __handle.webrtcStuff && __handle.webrtcStuff.pc) {
+ for (let receiver of __handle.webrtcStuff.pc.getReceivers()) {
+ if (receiver.track && receiver.track.kind == "video" && receiver.playoutDelayHint !== undefined) {
+ receiver.playoutDelayHint = 0;
+ }
+ }
+ }
},
oncleanup: function() {