diff --git a/objects/aVideoQueueEncoder.json.php b/objects/aVideoQueueEncoder.json.php index 852f6be98247..504f97b49c4a 100644 --- a/objects/aVideoQueueEncoder.json.php +++ b/objects/aVideoQueueEncoder.json.php @@ -150,11 +150,20 @@ $postFields['inputLow'] = 1; $postFields['inputSD'] = 1; $postFields['inputHD'] = 1; + if (!empty($_FILES['upl']['webm'])) + $postFields['webm'] = 1; } } else { $postFields['audioOnly'] = 1; $postFields['spectrum'] = 1; } + + if (!empty($_FILES['upl']['override_status'])) + $postFields['override_status'] = $_FILES['upl']['override_status']; + + if (!empty($_FILES['upl']['update_video_id'])) + $postFields['update_video_id'] = $_FILES['upl']['update_video_id']; + $queue[] = $video->queue($postFields); //exec("/usr/bin/php -f videoEncoder.php {$_FILES['upl']['tmp_name']} {$filename} 1> Video::getStoragePath()."{$filename}_progress.txt 2>&1", $output, $return_val); @@ -170,4 +179,4 @@ //echo '{"status":"error", "msg":' . json_encode($_FILES) . ', "type":"$_FILES Error"}'; status(["status" => "error", "msg" => print_r($_FILES, true), "type" => '$_FILES Error']); //exit; -} \ No newline at end of file +}