public function video_phpvideotoolkit::load_job_queue in Video 7
Interface Implementations
Overrides transcoder_interface::load_job_queue
See also
sites/all/modules/video/includes/transcoder_interface#load_job_queue()
File
- transcoders/
video_phpvideotoolkit.inc, line 511
Class
Code
public function load_job_queue() {
$total_videos = variable_get('video_ffmpeg_instances', 5);
$videos = array();
$result = db_query_range('SELECT f.*, vf.vid, vf.nid, vf.dimensions, vf.status as video_status
FROM {video_files} vf LEFT JOIN {file_managed} f ON vf.fid = f.fid
WHERE vf.status = :vstatus AND f.status = :fstatus ORDER BY f.timestamp', 0, $total_videos, array(
':vstatus' => VIDEO_RENDERING_PENDING,
':fstatus' => FILE_STATUS_PERMANENT,
));
foreach ($result as $row) {
$videos[] = $row;
}
return $videos;
}