1 | <?php |
||
52 | class BigBlueButton |
||
53 | { |
||
54 | private $securitySalt; |
||
55 | private $bbbServerBaseUrl; |
||
56 | private $urlBuilder; |
||
57 | |||
58 | public function __construct() |
||
64 | |||
65 | /** |
||
66 | * @return ApiVersionResponse |
||
67 | * |
||
68 | * @throws \RuntimeException |
||
69 | */ |
||
70 | public function getApiVersion() |
||
76 | |||
77 | /* __________________ BBB ADMINISTRATION METHODS _________________ */ |
||
78 | /* The methods in the following section support the following categories of the BBB API: |
||
79 | -- create |
||
80 | -- getDefaultConfigXML |
||
81 | -- join |
||
82 | -- end |
||
83 | */ |
||
84 | |||
85 | /** |
||
86 | * @param CreateMeetingParameters $createMeetingParams |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getCreateMeetingUrl($createMeetingParams) |
||
93 | |||
94 | /** |
||
95 | * @param CreateMeetingParameters $createMeetingParams |
||
96 | * @return CreateMeetingResponse |
||
97 | * @throws \RuntimeException |
||
98 | */ |
||
99 | public function createMeeting($createMeetingParams) |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getDefaultConfigXMLUrl() |
||
113 | |||
114 | /** |
||
115 | * @return GetDefaultConfigXMLResponse |
||
116 | * @throws \RuntimeException |
||
117 | */ |
||
118 | public function getDefaultConfigXML() |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function setConfigXMLUrl() |
||
132 | |||
133 | /** |
||
134 | * @return SetConfigXMLResponse |
||
135 | * @throws \RuntimeException |
||
136 | */ |
||
137 | public function setConfigXML($setConfigXMLParams) |
||
145 | |||
146 | /** |
||
147 | * @param $joinMeetingParams JoinMeetingParameters |
||
148 | * |
||
149 | * @return string |
||
150 | */ |
||
151 | public function getJoinMeetingURL($joinMeetingParams) |
||
155 | |||
156 | /** |
||
157 | * @param $joinMeetingParams JoinMeetingParameters |
||
158 | * |
||
159 | * @return JoinMeetingResponse |
||
160 | * @throws \RuntimeException |
||
161 | */ |
||
162 | public function joinMeeting($joinMeetingParams) |
||
168 | |||
169 | /** |
||
170 | * @param $endParams EndMeetingParameters |
||
171 | * |
||
172 | * @return string |
||
173 | */ |
||
174 | public function getEndMeetingURL($endParams) |
||
178 | |||
179 | /** |
||
180 | * @param $endParams EndMeetingParameters |
||
181 | * |
||
182 | * @return EndMeetingResponse |
||
183 | * @throws \RuntimeException |
||
184 | * */ |
||
185 | public function endMeeting($endParams) |
||
191 | |||
192 | /* __________________ BBB MONITORING METHODS _________________ */ |
||
193 | /* The methods in the following section support the following categories of the BBB API: |
||
194 | -- isMeetingRunning |
||
195 | -- getMeetings |
||
196 | -- getMeetingInfo |
||
197 | */ |
||
198 | |||
199 | /** |
||
200 | * @param $meetingParams IsMeetingRunningParameters |
||
201 | * @return string |
||
202 | */ |
||
203 | public function getIsMeetingRunningUrl($meetingParams) |
||
207 | |||
208 | /** |
||
209 | * @param $meetingParams |
||
210 | * @return IsMeetingRunningResponse |
||
211 | * @throws \RuntimeException |
||
212 | */ |
||
213 | public function isMeetingRunning($meetingParams) |
||
219 | |||
220 | /** |
||
221 | * @return string |
||
222 | */ |
||
223 | public function getMeetingsUrl() |
||
227 | |||
228 | /** |
||
229 | * @return GetMeetingsResponse |
||
230 | * @throws \RuntimeException |
||
231 | */ |
||
232 | public function getMeetings() |
||
238 | |||
239 | /** |
||
240 | * @param $meetingParams GetMeetingInfoParameters |
||
241 | * @return string |
||
242 | */ |
||
243 | public function getMeetingInfoUrl($meetingParams) |
||
247 | |||
248 | /** |
||
249 | * @param $meetingParams GetMeetingInfoParameters |
||
250 | * @return GetMeetingInfoResponse |
||
251 | * @throws \RuntimeException |
||
252 | */ |
||
253 | public function getMeetingInfo($meetingParams) |
||
259 | |||
260 | /* __________________ BBB RECORDING METHODS _________________ */ |
||
261 | /* The methods in the following section support the following categories of the BBB API: |
||
262 | -- getRecordings |
||
263 | -- publishRecordings |
||
264 | -- deleteRecordings |
||
265 | */ |
||
266 | |||
267 | /** |
||
268 | * @param $recordingsParams GetRecordingsParameters |
||
269 | * @return string |
||
270 | */ |
||
271 | public function getRecordingsUrl($recordingsParams) |
||
275 | |||
276 | /** |
||
277 | * @param $recordingParams |
||
278 | * @return GetRecordingsResponse |
||
279 | * @throws \RuntimeException |
||
280 | */ |
||
281 | public function getRecordings($recordingParams) |
||
287 | |||
288 | /** |
||
289 | * @param $recordingParams PublishRecordingsParameters |
||
290 | * @return string |
||
291 | */ |
||
292 | public function getPublishRecordingsUrl($recordingParams) |
||
296 | |||
297 | /** |
||
298 | * @param $recordingParams PublishRecordingsParameters |
||
299 | * @return PublishRecordingsResponse |
||
300 | * @throws \RuntimeException |
||
301 | */ |
||
302 | public function publishRecordings($recordingParams) |
||
308 | |||
309 | /** |
||
310 | * @param $recordingParams DeleteRecordingsParameters |
||
311 | * @return string |
||
312 | */ |
||
313 | public function getDeleteRecordingsUrl($recordingParams) |
||
317 | |||
318 | /** |
||
319 | * @param $recordingParams DeleteRecordingsParameters |
||
320 | * @return DeleteRecordingsResponse |
||
321 | * @throws \RuntimeException |
||
322 | */ |
||
323 | public function deleteRecordings($recordingParams) |
||
329 | |||
330 | /** |
||
331 | * @param $recordingParams UpdateRecordingsParameters |
||
332 | * @return string |
||
333 | */ |
||
334 | public function getUpdateRecordingsUrl($recordingParams) |
||
338 | |||
339 | /** |
||
340 | * @param $recordingParams UpdateRecordingsParameters |
||
341 | * @return UpdateRecordingsResponse |
||
342 | * @throws \RuntimeException |
||
343 | */ |
||
344 | public function updateRecordings($recordingParams) |
||
350 | |||
351 | /* ____________________ INTERNAL CLASS METHODS ___________________ */ |
||
352 | |||
353 | /** |
||
354 | * A private utility method used by other public methods to process XML responses. |
||
355 | * |
||
356 | * @param string $url |
||
357 | * @param string $xml |
||
358 | * @return SimpleXMLElement |
||
359 | * @throws \RuntimeException |
||
360 | */ |
||
361 | private function processXmlResponse($url, $xml = "", $contentType = "application/xml") |
||
404 | } |
||
405 |