function video_scheduler_start in Video 6
Same name and namespace in other branches
- 5 plugins/video_ffmpeg_helper/video_scheduler.php \video_scheduler_start()
- 6.2 plugins/video_ffmpeg_helper/video_scheduler.php \video_scheduler_start()
- 6.3 video_scheduler.php \video_scheduler_start()
Starts rendering for a job
1 call to video_scheduler_start()
- video_scheduler_main in plugins/
video_ffmpeg_helper/ video_scheduler.php - Main for video_scheduler.php
File
- plugins/
video_ffmpeg_helper/ video_scheduler.php, line 89 - Implement video rendering scheduling. If you are not using sites/default/settings.php as your settings file, add an optional parameter for the drupal site url: "php video_scheduler.php http://example.com/" or "php video_scheduler.php…
Code
function video_scheduler_start($job) {
$url = isset($_SERVER['argv'][1]) ? escapeshellarg($_SERVER['argv'][1]) : '';
exec("php video_render.php {$job->nid} {$job->vid} {$url} > /dev/null &");
}