You are here

function ZencoderJob::create_outputs in Video 7

1 call to ZencoderJob::create_outputs()
ZencoderJob::update_attributes in modules/video_zencoder/includes/Zencoder.php

File

modules/video_zencoder/includes/Zencoder.php, line 81

Class

ZencoderJob

Code

function create_outputs($outputs = array()) {
  foreach ($outputs as $output_attrs) {
    if ($output_attrs["label"]) {
      $this->outputs[$output_attrs["label"]] = new ZencoderOutputFile($output_attrs);
    }
    else {
      $this->outputs[] = new ZencoderOutputFile($output_attrs);
    }
  }
}