public function video_zencoder::load_job_queue in Video 7
Same name and namespace in other branches
- 6.5 plugins/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job_queue()
- 6.4 plugins/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job_queue()
Interface Implementations
Overrides transcoder_interface::load_job_queue
See also
sites/all/modules/video/includes/transcoder_interface#load_job_queue()
File
- modules/
video_zencoder/ transcoders/ video_zencoder.inc, line 349
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_zencoder} 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;
}