You are here

function video_scheduler_start in Video 6.2

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.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 82
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 &");
}