| @@ 158-173 (lines=16) @@ | ||
| 155 | * |
|
| 156 | * @return bool |
|
| 157 | */ |
|
| 158 | public function isMeetingRunning($meeting) |
|
| 159 | { |
|
| 160 | if (! $meeting instanceof IsMeetingRunningParameters) { |
|
| 161 | $meeting = $this->initIsMeetingRunning($meeting); |
|
| 162 | } |
|
| 163 | ||
| 164 | $this->response = $this->bbb->isMeetingRunning($meeting); |
|
| 165 | if ($this->response->success()) { |
|
| 166 | $response = XmlToArray($this->response->getRawXml()); |
|
| 167 | if (isset($response['running']) && $response['running'] == 'true') { |
|
| 168 | return true; |
|
| 169 | } |
|
| 170 | } |
|
| 171 | ||
| 172 | return false; |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * Join meeting. |
|
| @@ 302-317 (lines=16) @@ | ||
| 299 | * |
|
| 300 | * @return bool |
|
| 301 | */ |
|
| 302 | public function publishRecordings($recording) |
|
| 303 | { |
|
| 304 | if (! $recording instanceof PublishRecordingsParameters) { |
|
| 305 | $recording = $this->initPublishRecordings($recording); |
|
| 306 | } |
|
| 307 | ||
| 308 | $this->response = $this->bbb->publishRecordings($recording); |
|
| 309 | if ($this->response->success()) { |
|
| 310 | $response = XmlToArray($this->response->getRawXml()); |
|
| 311 | if (isset($response['published']) && $response['published'] == 'true') { |
|
| 312 | return true; |
|
| 313 | } |
|
| 314 | } |
|
| 315 | ||
| 316 | return false; |
|
| 317 | } |
|
| 318 | ||
| 319 | /** |
|
| 320 | * @param $recording |
|