public function video_zencoder::load_job_queue in Video 6.4
Same name and namespace in other branches
- 6.5 plugins/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job_queue()
- 7 modules/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job_queue()
Overrides transcoder_interface::load_job_queue
File
- plugins/
video_zencoder/ transcoders/ video_zencoder.inc, line 308
Class
Code
public function load_job_queue() {
// load jobs with status as pending and active both
$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 {files} f ON vf.fid = f.fid WHERE vf.status = %d AND f.status = %d ORDER BY f.timestamp', VIDEO_RENDERING_PENDING, FILE_STATUS_PERMANENT, 0, $total_videos);
while ($row = db_fetch_object($result)) {
$videos[] = $row;
}
return $videos;
}