Skip to content

Job Stream Object #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 27, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .buildpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test.php
build_docs.sh
.DS_Store
/nbproject/private/
28 changes: 28 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Zencoder PHP</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.php.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
include_path=0;/Zencoder PHP
7 changes: 7 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="php.core.component"/>
<fixed facet="php.component"/>
<installed facet="php.core.component" version="1"/>
<installed facet="php.component" version="5.4"/>
</faceted-project>
11 changes: 11 additions & 0 deletions Services/Zencoder/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ class Services_Zencoder_Job extends Services_Zencoder_Object
* @var Services_Zencoder_Input
*/
public $input;

/**
* Services_Zencoder_Stream object containing information on the stream for
* live transcoding
*
* @var Services_Zencoder_Stream
*/
public $stream;

/**
* A copy of the raw API response for debug purposes
*
Expand Down Expand Up @@ -57,6 +66,8 @@ private function _update_attributes($attributes = array())
$this->_create_thumbnails($attr_value);
} elseif ($attr_name == "input_media_file" && is_object($attr_value)) {
$this->input = new Services_Zencoder_Input($attr_value);
} elseif ($attr_name == "stream" && is_object($attr_value)){
$this->stream = new Services_Zencoder_Stream($attr_value);
} elseif (is_array($attr_value) || is_object($attr_value)) {
$this->_update_attributes($attr_value);
} elseif (empty($this->$attr_name)) {
Expand Down
15 changes: 15 additions & 0 deletions Services/Zencoder/Stream.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Zencoder API client interface.
*
* @category Services
* @package Services_Zencoder
* @author Carles Galan Cladera <cgcladera@gmail.com>
* @version Release: 2.1.1
* @license http://creativecommons.org/licenses/MIT/MIT
* @link http://github.com/zencoder/zencoder-php
*/

class Services_Zencoder_Stream extends Services_Zencoder_Object
{
}