diff options
author | Devaev Maxim <[email protected]> | 2021-05-14 05:48:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-14 05:48:49 +0300 |
commit | bbf65295105dab6013828e590e2cf6d69688896a (patch) | |
tree | 7a49910ffaa3c7df2af2daee075255dd3d309f6c /web/share/js/kvm/stream.js | |
parent | fc5e8706b66731bf5293d953dafea2f517e55df7 (diff) |
janus stubs
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r-- | web/share/js/kvm/stream.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 1a5d1c67..1008cb92 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -25,8 +25,27 @@ import {tools, $} from "../tools.js"; import {wm} from "../wm.js"; +/*import {Janus} from "./janus.js"; +function _JanusStreamer(set_active_callback, set_inactive_callback, set_info_callback) { + var self = this; + + var __janus = null; + var __handle = null; + var __bitrate_timer = null; + + self.getResolution = function() { + let el_video = $("stream-video"); + return { + real_width: el_video.videoWidth, + real_height: el_video.videoHeight, + view_width: el_video.offsetWidth, + view_height: el_video.offsetHeight, + }; + }; +};*/ + function _MjpegStreamer(set_active_callback, set_inactive_callback, set_info_callback) { var self = this; |