interface video_transcoder in Video 6.5
Hierarchy
- interface \video_plugin
- interface \video_transcoder
Expanded class hierarchy of video_transcoder
All classes that implement video_transcoder
File
- ./
video.lib.inc, line 40 - File containing Video module interfaces and classes
View source
interface video_transcoder extends video_plugin {
public function preset_settings(&$form_state, video_preset $preset);
public function preset_settings_validate($form, &$form_state);
public function create_job(stdClass $video);
public function update_job(stdClass $video);
public function delete_job(stdClass $video);
public function load_job($fid);
/**
* Return at most $num files that need to be transcoded.
*
* @param int $num
*/
public function load_job_queue($num);
public function load_completed_job(stdClass $video);
/**
* Change the rendering status of the file.
*
* @param $video
* Video instance
* @param $status
* One of the VIDEO_RENDERING_* constants
*/
public function change_status(stdClass $video, $status);
public function generate_thumbnails(stdClass $video);
/**
* Convert the given video.
*
* Make sure to update the provided video object with any information that
* is required by the file system module after conversion.
*
* @return bool
* TRUE if the conversion was successful, FALSE otherwise
*/
public function convert_video(stdClass $video);
public function requirements();
/**
* Return the width and height of the given file.
*
* @param $filepath
* string containing the path to the video file.
*
* @return
* array containing keys width and height or NULL when
* the width and height can't be determined.
*/
public function get_dimensions($filepath);
/**
* Helper method for video_file_download()
*
* Returns the path to the original video file based on the path of the
* converted video file.
*
* @param $filepath
* The path to the converted file, this path must have been processed by
* file_create_path().
* @return
* Path to the original video, NULL if not found.
*/
public function get_original_path_by_converted_path($filepath);
}