diff --git a/encoder/output.php b/encoder/output.php index 1dd36bf..efc6eec 100755 --- a/encoder/output.php +++ b/encoder/output.php @@ -18,7 +18,7 @@ $defaults = [ 'service_custom' => 'disable', 'rtmp0_multiple' => [], - 'rtmp1_multiple1' => [], + 'rtmp1_multiple' => [], 'srt_multiple' => [], 'rtmp0' => [ 'resolution' => '1920x1080', diff --git a/encoder/static.php b/encoder/static.php index 71501e6..2c92315 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -265,14 +265,14 @@ function update_service($which_service) $rtmp_push0 = ""; for ($i = 1; $i <= 11; $i++) { - if ($rtmp_multiple0[$i]['enabled'] == 1) { + if ($rtmp_multiple0[$i]['enabled'] == 'true') { $rtmp_push0 .= " push " . $rtmp_multiple0[$i]['url'] . ";"; } } $rtmp_push1 = ""; for ($i = 1; $i <= 11; $i++) { - if ($rtmp_multiple1[$i]['enabled'] == 1) { + if ($rtmp_multiple1[$i]['enabled'] == 'true') { $rtmp_push1 .= " push " . $rtmp_multiple1[$i]['url'] . ";"; }