diff options
author | Devaev Maxim <[email protected]> | 2019-07-13 04:52:19 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-07-13 04:52:19 +0300 |
commit | ad97aecaf4d043c59d018310b4d8f4852d30b6e0 (patch) | |
tree | 90f6fbcdacc9aefd54cd093a77d337f1fb4543c9 /web | |
parent | dfe58d81efcc14b4ff8a3e6e2204bfdcce7a620b (diff) |
new ustreamer and fps max
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 2 | ||||
-rw-r--r-- | web/share/js/kvm/stream.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index dae4b9c3..56279005 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -100,7 +100,7 @@ </div> <hr> <div class="menu-item-content-text"> - Stream FPS: <span id="stream-desired-fps-value">30</span> + Stream FPS: <span id="stream-desired-fps-value">0</span> <div class="stream-slider-box"> <input disabled type="range" id="stream-desired-fps-slider" class="slider" /> </div> diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index f6d19718..a73d0d2d 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -42,7 +42,7 @@ function Streamer() { tools.setOnUpSlider($("stream-quality-slider"), 1000, __updateQualityValue, (value) => __sendParam("quality", value)); $("stream-desired-fps-slider").min = 0; - $("stream-desired-fps-slider").max = 30; + $("stream-desired-fps-slider").max = 120; $("stream-desired-fps-slider").step = 1; $("stream-desired-fps-slider").value = 0; tools.setOnUpSlider($("stream-desired-fps-slider"), 1000, __updateDesiredFpsValue, (value) => __sendParam("desired_fps", value)); @@ -80,6 +80,7 @@ function Streamer() { } if (!$("stream-desired-fps-slider").activated) { + $("stream-desired-fps-slider").max = state.limits.max_fps; wm.switchDisabled($("stream-desired-fps-slider"), false); if ($("stream-desired-fps-slider").value !== source.desired_fps) { $("stream-desired-fps-slider").value = source.desired_fps; |