summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r--web/share/js/kvm/stream.js19
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;