You are here

public function TranscoderAbstractionFactory::setOutput in Video 7.2

Set output file for transcoding, this would be the result file.

2 calls to TranscoderAbstractionFactory::setOutput()
TranscoderAbstractionFactoryFfmpeg::setOutput in transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Set output file for transcoding, this would be the result file.
TranscoderAbstractionFactoryZencoder::setOutput in transcoders/TranscoderAbstractionFactoryZencoder.inc
Set output file for transcoding, this would be the result file.
2 methods override TranscoderAbstractionFactory::setOutput()
TranscoderAbstractionFactoryFfmpeg::setOutput in transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Set output file for transcoding, this would be the result file.
TranscoderAbstractionFactoryZencoder::setOutput in transcoders/TranscoderAbstractionFactoryZencoder.inc
Set output file for transcoding, this would be the result file.

File

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

Class

TranscoderAbstractionFactory
Abstract class for the transcoder classes to keep common methods

Code

public function setOutput($output_directory, $output_name, $overwrite_mode = FILE_EXISTS_REPLACE) {

  // @TODO : do some validation to check the file exists
  if (count($output_directory) == 1) {
    $this->settings['base_url'] = $output_directory;
  }
  if (count($output_name) == 1) {
    $this->settings['filename'] = $output_name;
  }
  else {
    $this->errors['output'] = 'Output file not found.';
  }
}