You are here

public function video_phpvideotoolkit::create_job in Video 7

Interface Implementations

Overrides transcoder_interface::create_job

See also

sites/all/modules/video/includes/transcoder_interface#create_job()

File

transcoders/video_phpvideotoolkit.inc, line 459

Class

video_phpvideotoolkit

Code

public function create_job($video, $nid) {
  return db_insert('video_files')
    ->fields(array(
    'fid' => $video['fid'],
    'nid' => $nid,
    'status' => VIDEO_RENDERING_PENDING,
    'dimensions' => $video['dimensions'],
  ))
    ->execute();
}