diff --git a/.buildpath b/.buildpath new file mode 100644 index 0000000..8bcb4b5 --- /dev/null +++ b/.buildpath @@ -0,0 +1,5 @@ + + + + + diff --git a/.gitignore b/.gitignore index 1ca1a7e..96396af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ test.php build_docs.sh .DS_Store +/nbproject/private/ diff --git a/.project b/.project new file mode 100644 index 0000000..2a31c0d --- /dev/null +++ b/.project @@ -0,0 +1,28 @@ + + + Zencoder PHP + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.dltk.core.scriptbuilder + + + + + + org.eclipse.php.core.PHPNature + org.eclipse.wst.common.project.facet.core.nature + + diff --git a/.settings/org.eclipse.php.core.prefs b/.settings/org.eclipse.php.core.prefs new file mode 100644 index 0000000..b18489f --- /dev/null +++ b/.settings/org.eclipse.php.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +include_path=0;/Zencoder PHP diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..ad32966 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Services/Zencoder/Job.php b/Services/Zencoder/Job.php index 8e7ef69..17b0819 100644 --- a/Services/Zencoder/Job.php +++ b/Services/Zencoder/Job.php @@ -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 * @@ -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)) { diff --git a/Services/Zencoder/Stream.php b/Services/Zencoder/Stream.php new file mode 100644 index 0000000..88f2b59 --- /dev/null +++ b/Services/Zencoder/Stream.php @@ -0,0 +1,15 @@ + + * @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 +{ +} \ No newline at end of file