diff options
author | Devaev Maxim <[email protected]> | 2019-03-03 12:41:41 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-03-03 12:41:41 +0300 |
commit | 788c307440b3b279533ae3a8cce437a6554c0131 (patch) | |
tree | 1b3b9089a1caf90e651317ec1bb769f95a995e2c /web | |
parent | e4400a5086f85ac1c1b95f1e590f48fc5dade5be (diff) |
fix for new ustreamer
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/stream.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index cbd69d32..8fd1d217 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -62,6 +62,7 @@ function Streamer() { self.setState = function(state) { if (state && state.state) { + var encoder = state.state.encoder; var source = state.state.source; var stream = state.state.stream; @@ -72,9 +73,9 @@ function Streamer() { if (!$("stream-quality-slider").activated) { wm.switchDisabled($("stream-quality-slider"), false); - if ($("stream-quality-slider").value !== source.quality) { - $("stream-quality-slider").value = source.quality; - __updateQualityValue(source.quality); + if ($("stream-quality-slider").value !== encoder.quality) { + $("stream-quality-slider").value = encoder.quality; + __updateQualityValue(encoder.quality); } } |