File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ class Services_Zencoder_Job extends Services_Zencoder_Object
3030 * @var Services_Zencoder_Input
3131 */
3232 public $ input ;
33+
34+ /**
35+ * Services_Zencoder_Stream object containing information on the stream for
36+ * LIVE transcoding
37+ * @var Services_Zencoder_Stream
38+ */
39+ public $ stream ;
3340 /**
3441 * A copy of the raw API response for debug purposes
3542 *
@@ -57,6 +64,8 @@ private function _update_attributes($attributes = array())
5764 $ this ->_create_thumbnails ($ attr_value );
5865 } elseif ($ attr_name == "input_media_file " && is_object ($ attr_value )) {
5966 $ this ->input = new Services_Zencoder_Input ($ attr_value );
67+ } elseif ($ attr_name == "stream " && is_object ($ attr_value )){
68+ $ this ->stream = new Services_Zencoder_Stream ($ attr_value );
6069 } elseif (is_array ($ attr_value ) || is_object ($ attr_value )) {
6170 $ this ->_update_attributes ($ attr_value );
6271 } elseif (empty ($ this ->$ attr_name )) {
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Zencoder API client interface.
5+ *
6+ * @category Services
7+ * @package Services_Zencoder
8+ * @author Carles Galan Cladera <cgcladera@gmail.com>
9+ * @version Release: 2.1.1
10+ * @license http://creativecommons.org/licenses/MIT/MIT
11+ * @link http://github.com/zencoder/zencoder-php
12+ */
13+ class Services_Zencoder_Stream extends Services_Zencoder_Object
14+ {
15+ }
You can’t perform that action at this time.
0 commit comments