You are here

public function video_phpvideotoolkit::get_dimensions in Video 7

File

transcoders/video_phpvideotoolkit.inc, line 376

Class

video_phpvideotoolkit

Code

public function get_dimensions($video) {
  $video_info = $this
    ->get_video_info($video);
  $res = array(
    'width' => 0,
    'height' => 0,
  );

  // Get dimensions
  $res['width'] = $video_info['video']['dimensions']['width'] ? $video_info['video']['dimensions']['width'] : NULL;
  $res['height'] = $video_info['video']['dimensions']['height'] ? $video_info['video']['dimensions']['height'] : NULL;
  return $res;
}