private function video_conversion::render in Video 6.4
Same name and namespace in other branches
- 7 includes/conversion.inc \video_conversion::render()
1 call to video_conversion::render()
- video_conversion::process in includes/
conversion.inc - Process the video through ffmpeg.
File
- includes/
conversion.inc, line 69
Class
Code
private function render($video) {
if (!is_object($video)) {
watchdog('video_conversion', 'Video object is not present', array(), WATCHDOG_ERROR);
return FALSE;
}
// Make sure this video is pending or do nothing.
if ($video->video_status == VIDEO_RENDERING_PENDING) {
return $this->transcoder
->convert_video($video);
}
return NULL;
}