1 | <?php |
||
29 | class LiveRecording extends Resource |
||
30 | { |
||
31 | /** |
||
32 | * @var string (optional) - Cause for recording failure if failed |
||
33 | */ |
||
34 | private $cause; |
||
35 | |||
36 | /** |
||
37 | * @var int (optional) - Duration in seconds of the recording |
||
38 | */ |
||
39 | private $duration; |
||
40 | |||
41 | /** |
||
42 | * @var string Recording format (wav, gsm, etc.) |
||
43 | */ |
||
44 | private $format; |
||
45 | |||
46 | /** |
||
47 | * @var string Base name for the recording |
||
48 | */ |
||
49 | private $name; |
||
50 | |||
51 | /** |
||
52 | * @var int (optional) - Duration of silence, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds. |
||
53 | */ |
||
54 | private $silenceDuration; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $state; |
||
60 | |||
61 | /** |
||
62 | * @var int (optional) - Duration of talking, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds. |
||
63 | */ |
||
64 | private $talkingDuration; |
||
65 | |||
66 | /** |
||
67 | * @var string URI for the channel or bridge being recorded |
||
68 | */ |
||
69 | private $targetUri; |
||
70 | |||
71 | /** |
||
72 | * @return string (optional) - Cause for recording failure if failed |
||
73 | */ |
||
74 | public function getCause() |
||
78 | |||
79 | /** |
||
80 | * @return int (optional) - Duration in seconds of the recording |
||
81 | */ |
||
82 | public function getDuration() |
||
86 | |||
87 | /** |
||
88 | * @return string Recording format (wav, gsm, etc.) |
||
89 | */ |
||
90 | public function getFormat() |
||
94 | |||
95 | /** |
||
96 | * @return string Base name for the recording |
||
97 | */ |
||
98 | public function getName() |
||
102 | |||
103 | /** |
||
104 | * @return int (optional) - Duration of silence, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds. |
||
105 | */ |
||
106 | public function getSilenceDuration() |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getState() |
||
118 | |||
119 | /** |
||
120 | * @return int (optional) - Duration of talking, in seconds, detected in the recording. This is only available if the recording was initiated with a non-zero maxSilenceSeconds. |
||
121 | */ |
||
122 | public function getTalkingDuration() |
||
126 | |||
127 | /** |
||
128 | * @return string URI for the channel or bridge being recorded |
||
129 | */ |
||
130 | public function getTargetUri() |
||
134 | |||
135 | /** |
||
136 | * @param callable $callback |
||
137 | */ |
||
138 | public function onRecordingFailed(callable $callback) |
||
142 | |||
143 | /** |
||
144 | * @param callable $callback |
||
145 | */ |
||
146 | public function onceRecordingFailed(callable $callback) |
||
150 | |||
151 | /** |
||
152 | * @param callable $callback |
||
153 | */ |
||
154 | public function onRecordingFinished(callable $callback) |
||
158 | |||
159 | /** |
||
160 | * @param callable $callback |
||
161 | */ |
||
162 | public function onceRecordingFinished(callable $callback) |
||
166 | |||
167 | /** |
||
168 | * @param callable $callback |
||
169 | */ |
||
170 | public function onRecordingStarted(callable $callback) |
||
174 | |||
175 | /** |
||
176 | * @param callable $callback |
||
177 | */ |
||
178 | public function onceRecordingStarted(callable $callback) |
||
182 | |||
183 | /** |
||
184 | * @param AriClient $client |
||
185 | * @param string $response |
||
186 | */ |
||
187 | public function __construct(AriClient $client, $response) |
||
200 | |||
201 | } |
||
202 |