Skip to content

Commit

Permalink
Merge pull request #4652 from manu0401/queue
Browse files Browse the repository at this point in the history
Add support for the webm, status_override, and update_video_id fields
  • Loading branch information
DanielnetoDotCom authored Mar 10, 2021
2 parents 36fe7c2 + b1311e2 commit 51531f2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion objects/aVideoQueueEncoder.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
}

0 comments on commit 51531f2

Please sign in to comment.