diff options
Diffstat (limited to 'web/share/js/kvm/stream_janus.js')
-rw-r--r-- | web/share/js/kvm/stream_janus.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/web/share/js/kvm/stream_janus.js b/web/share/js/kvm/stream_janus.js index eece0124..ad5b5b54 100644 --- a/web/share/js/kvm/stream_janus.js +++ b/web/share/js/kvm/stream_janus.js @@ -333,22 +333,18 @@ JanusStreamer.ensure_janus = function(callback) { "debug": "all", "callback": function() { _Janus = module.Janus; - callback(); + callback(true); }, }); }).catch((err) => { tools.error("Stream: Can't import Janus module:", err); - callback(); + callback(false); }); } else { - callback(); + callback(true); } }; -JanusStreamer.is_imported = function() { - return (_Janus !== null); -}; - JanusStreamer.is_webrtc_available = function() { return !!window.RTCPeerConnection; }; |