summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-02 10:25:49 +0300
committerMaxim Devaev <[email protected]>2022-06-02 10:25:49 +0300
commit9fe588ac46154fd11539e81ea17a2b667e1410b8 (patch)
treefb9b6bb0cf8317afafc78e920dfec52a0acf3748 /web
parent124ed635ed7d751987dbfa7939c5a0f755ece3fa (diff)
audio slider fix
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/stream.js2
1 files changed, 1 insertions, 1 deletions
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();
},