You are here

public function TranscoderAbstractionFactory::getDimensions in Video 7.2

File

includes/TranscoderFactory.inc, line 151
Transcoder Abstract Factory classes

Class

TranscoderAbstractionFactory
Abstract class for the transcoder classes to keep common methods

Code

public function getDimensions() {
  $i = $this
    ->getFileInfo();
  if (empty($i) || empty($i['video']['dimensions']['width']) || empty($i['video']['dimensions']['height'])) {
    return NULL;
  }
  return array(
    'width' => intval($i['video']['dimensions']['width']),
    'height' => intval($i['video']['dimensions']['height']),
  );
}