From 1ca30457802fa14cf2c54685f4608a67eeecd8f1 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sat, 16 Jul 2022 02:03:54 +0300 Subject: playoutDelayHint = 0 --- web/share/js/kvm/stream.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web') 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() { -- cgit v1.2.3