From f053bd5edecf19aba237c0b08acec461dcdc6171 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 17 May 2021 00:11:56 +0300 Subject: html webrtc stubs --- web/share/js/kvm/stream.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/share/js/kvm') diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 7371c2e5..7f5e5207 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -25,6 +25,8 @@ import {tools, $} from "../tools.js"; import {wm} from "../wm.js"; + + var _Janus = null; @@ -213,6 +215,7 @@ export function Streamer() { let supported = !!window.RTCPeerConnection; let set_enabled = function() { __janus_enabled = (enabled && supported && _Janus !== null); + tools.featureSetEnabled($("stream-mode"), __janus_enabled); tools.info(`Stream: Janus WebRTC state: enabled=${enabled}, supported=${supported}, imported=${!!_Janus}`); self.setState(__state); }; -- cgit v1.2.3