You are here

function video_scheduler_start in Video 6.3

Same name and namespace in other branches
  1. 5 plugins/video_ffmpeg_helper/video_scheduler.php \video_scheduler_start()
  2. 6 plugins/video_ffmpeg_helper/video_scheduler.php \video_scheduler_start()
  3. 6.2 plugins/video_ffmpeg_helper/video_scheduler.php \video_scheduler_start()

Starts rendering for a job

1 call to video_scheduler_start()
video_scheduler_main in ./video_scheduler.php
Main for video_scheduler.php

File

./video_scheduler.php, line 86
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]) : '';
  //  watchdog('video_scheduler', 'Execute video_render.php %url and %job', array('%url'=>$url, '%job'=>$job->fid), WATCHDOG_DEBUG);
  //  exec("/usr/local/bin/php /home/freja/public_html/v5-dev/video_render.php $job->fid $url > /dev/null &");
  video_render_main($job->fid);
}