function video_get_transcoder in Video 6.5
Get transcoder instance
Parameters
$name: Plugin name (eg. video_localcommand), NULL for current
Return value
video_transcoder The current transcoder
15 calls to video_get_transcoder()
- theme_video_formatter_video_plain in ./
video_formatter.inc - Default video cck formatter
- video_admin_preset_configure in ./
video.admin.inc - Form for transcoder specific preset settings
- video_convert_process in ./
video_widget.inc - Adds a video to the video rendering table.
- video_file_delete in ./
video.module - Implementation of hook_file_delete().
- video_file_download in ./
video.module - Implementation of hook_file_download().
File
- ./
video.module, line 678 - Main file of the Video module.
Code
function video_get_transcoder($name = NULL) {
if ($name === NULL) {
$name = variable_get('vid_convertor', 'video_localcommand');
}
ctools_include('plugins');
module_load_include('lib.inc', 'video');
$plugin = ctools_get_plugins('video', 'transcoder', $name);
if ($plugin && $plugin['valid']) {
require_once $plugin['path'] . '/' . $plugin['file'];
return new $plugin['class']();
}
return NULL;
}