mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fix for new ustreamer
This commit is contained in:
parent
e4400a5086
commit
788c307440
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user