You are here

public function TranscoderAbstractionFactory::setInput in Video 7.2

Set Input file to add input file in to settings variable

2 calls to TranscoderAbstractionFactory::setInput()
TranscoderAbstractionFactoryFfmpeg::setInput in transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Set Input file to add input file in to settings variable
TranscoderAbstractionFactoryZencoder::setInput in transcoders/TranscoderAbstractionFactoryZencoder.inc
Set Input file to add input file in to settings variable
2 methods override TranscoderAbstractionFactory::setInput()
TranscoderAbstractionFactoryFfmpeg::setInput in transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Set Input file to add input file in to settings variable
TranscoderAbstractionFactoryZencoder::setInput in transcoders/TranscoderAbstractionFactoryZencoder.inc
Set Input file to add input file in to settings variable

File

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

Class

TranscoderAbstractionFactory
Abstract class for the transcoder classes to keep common methods

Code

public function setInput(array $file) {

  // @TODO : do some validation to check the file exists;
  if (!empty($file)) {
    if (empty($file['uri'])) {
      $file += (array) file_load($file['fid']);
    }
    $this->settings['input'] = $file;
  }
  else {
    drupal_set_message(t('Video file not found.'), 'error');
  }
}