You are here

function _video_render_load_job in Video 6.2

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

Load a job

1 call to _video_render_load_job()
video_render_main in plugins/video_ffmpeg_helper/video_render.php

File

plugins/video_ffmpeg_helper/video_render.php, line 245
Renders a video. This script is called concurrently by video_scheduler.php This script has to be launched with "php video_render.php nid vid" If you are not using sites/default/settings.php as your settings file, add an optional parameter…

Code

function _video_render_load_job($nid, $vid, $status) {
  $result = db_query('SELECT * FROM {video_rendering} vr INNER JOIN {node} n ON vr.vid = n.vid INNER JOIN {video} v ON n.vid = v.vid WHERE n.nid = v.nid AND vr.nid = n.nid AND vr.status = %d AND n.nid = %d AND n.vid = %d', $status, $nid, $vid);
  return db_fetch_object($result);
}