diff options
author | Maxim Devaev <[email protected]> | 2022-11-29 10:13:53 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-11-29 10:13:53 +0300 |
commit | a68eb4ed2d34682a696f5145868cc744cef9a949 (patch) | |
tree | 81b0766aa003a58f971a003d4027363e44d9c12c /web/share/js/kvm/stream_janus.js | |
parent | 6a339238ffa5907ef99b537918b1861c27740265 (diff) |
refactoring
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; }; |