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
30
30
* @var Services_Zencoder_Input
31
31
*/
32
32
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 ;
33
40
/**
34
41
* A copy of the raw API response for debug purposes
35
42
*
@@ -57,6 +64,8 @@ private function _update_attributes($attributes = array())
57
64
$ this ->_create_thumbnails ($ attr_value );
58
65
} elseif ($ attr_name == "input_media_file " && is_object ($ attr_value )) {
59
66
$ 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 );
60
69
} elseif (is_array ($ attr_value ) || is_object ($ attr_value )) {
61
70
$ this ->_update_attributes ($ attr_value );
62
71
} 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