summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {