public static function video_jobs::load in Video 7.2
Load transcoding job from the database.
8 calls to video_jobs::load()
- TranscoderAbstractionFactoryFfmpeg::extractFrames in transcoders/
TranscoderAbstractionFactoryFfmpeg.inc - Extract frames from the current video.
- TranscoderAbstractionFactoryZencoder::extractFrames in transcoders/
TranscoderAbstractionFactoryZencoder.inc - For new videos, this function is never called, because all thumbnails are extracted and saved to the databases during the post back handler in TranscoderAbstractionFactoryZencoder::processPostback().
- TranscoderAbstractionFactoryZencoder::processPostback in transcoders/
TranscoderAbstractionFactoryZencoder.inc - Process postback jobs
- TranscoderAbstractionFactoryZencoderTestCase::testProcessPostback in tests/
TranscoderAbstractionFactoryZencoder.test - Test of TranscoderAbstractionFactoryZencoder::processPostback()
- video_cron in ./
video.module - Implements hook_cron().
File
- includes/
jobs.inc, line 53 - Static class containing transcoding job related operations.
Class
- video_jobs
- @file Static class containing transcoding job related operations.
Code
public static function load($fid) {
$job = db_query('SELECT vf.*, f.*, vf.status as video_status FROM {video_queue} vf LEFT JOIN {file_managed} f ON vf.fid = f.fid WHERE f.fid=vf.fid AND vf.fid = :fid', array(
':fid' => $fid,
))
->fetch();
if (empty($job)) {
return FALSE;
}
$job->data = empty($job->data) ? NULL : unserialize($job->data);
return $job;
}