From 9fe588ac46154fd11539e81ea17a2b667e1410b8 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 2 Jun 2022 10:25:49 +0300 Subject: audio slider fix --- web/share/js/kvm/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index e2e03715..f472a7dd 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -215,7 +215,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { onremotestream: function(stream) { __logInfo("Got a remote stream:", stream); - __setAudioEnabled(!!stream.getAudioTracks()); + __setAudioEnabled(!!stream.getAudioTracks().length); _Janus.attachMediaStream($("stream-video"), stream); __startInfoInterval(); }, -- cgit v1.2.3