public static function video_jobs::update in Video 7.2
4 calls to video_jobs::update()
- Transcoder::executeConversion in includes/
Transcoder.inc - This helper function will help to execute video conversion job by loading job from the database and once it completed saving its data in to the database.
- video_jobs::loadQueue in includes/
jobs.inc - Select videos from our queue.
- video_jobs::setCompletedOrFailed in includes/
jobs.inc - _video_field_file_autoconversion in ./
video.field.inc - Video file save to the video_queue table for conversions
File
- includes/
jobs.inc, line 28 - Static class containing transcoding job related operations.
Class
- video_jobs
- @file Static class containing transcoding job related operations.
Code
public static function update(stdClass $video) {
// Rewrite the status attribute
// @todo rename the status field in the video_queue table to something that doesn't
// collide with the file_managed table.
$oldstatus = $video->status;
$video->status = $video->video_status;
$result = drupal_write_record('video_queue', $video, 'fid') === SAVED_UPDATED;
$video->status = $oldstatus;
return $result;
}