summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-13 04:10:26 +0300
committerDevaev Maxim <[email protected]>2020-07-14 09:04:52 +0300
commit77f3dab55c52859490619825ace4620a5d134901 (patch)
tree90ac48b6cb5108543f9f3bad423c8a05de0e1ace /web/share
parent07fb731b215a560bdc0a89a1fd5c199d910034a3 (diff)
optional quality and resolution
Diffstat (limited to 'web/share')
-rw-r--r--web/share/js/kvm/stream.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index 7ea7d722..80832c7f 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -67,6 +67,10 @@ export function Streamer() {
/************************************************************************/
self.setState = function(state) {
+ if (state) {
+ tools.setFeatureEnabled($("stream-quality"), state.features.quality && (state.state === null || state.state.encoder.quality > 0));
+ }
+
if (state && state.state) {
let max_fps = state.limits.max_fps;
state = state.state;