public function video_ffmpeg::load_job_queue in Video 7
Same name and namespace in other branches
- 6.4 transcoders/video_ffmpeg.inc \video_ffmpeg::load_job_queue()
Interface Implementations
Overrides transcoder_interface::load_job_queue
See also
sites/all/modules/video/includes/transcoder_interface#load_job_queue()
1 call to video_ffmpeg::load_job_queue()
- video_ffmpeg_php::load_job_queue in transcoders/
video_ffmpeg_php.inc - Interface Implementations
1 method overrides video_ffmpeg::load_job_queue()
- video_ffmpeg_php::load_job_queue in transcoders/
video_ffmpeg_php.inc - Interface Implementations
File
- transcoders/
video_ffmpeg.inc, line 481
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;
}