diff options
author | Devaev Maxim <[email protected]> | 2021-05-19 17:13:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-19 17:13:02 +0300 |
commit | af491b7905ed3b5aff95f92c0bf0d4033e85b9c3 (patch) | |
tree | 5bd4f5d0f00b48ece5fbb38384c11622f26ec06e /web | |
parent | b66618f12d337bd6611923649b46996945ab7bbc (diff) |
fix
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/stream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 66c78855..10b72942 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -450,18 +450,18 @@ export function Streamer() { var __applyState = function(state) { if (state) { tools.featureSetEnabled($("stream-quality"), state.features.quality && (state.streamer === null || state.streamer.encoder.quality > 0)); + tools.featureSetEnabled($("stream-h264-bitrate"), state.features.h264 && __janus_enabled); tools.featureSetEnabled($("stream-resolution"), state.features.resolution); if (state.streamer) { wm.setElementEnabled($("stream-quality-slider"), true); __setIfChanged($("stream-quality-slider"), state.streamer.encoder.quality, __updateQualityValue); - if (state.features.h264) { + if (state.features.h264 && __janus_enabled) { __setMinMax($("stream-h264-bitrate-slider"), state.limits.h264_bitrate); wm.setElementEnabled($("stream-h264-bitrate-slider"), true); __setIfChanged($("stream-h264-bitrate-slider"), state.streamer.h264.bitrate, __updateH264BitrateValue); } - tools.featureSetEnabled($("stream-h264-bitrate"), state.features.h264); __setMinMax($("stream-desired-fps-slider"), state.limits.desired_fps); wm.setElementEnabled($("stream-desired-fps-slider"), true); |