| @@ 122-137 (lines=16) @@ | ||
| 119 | * |
|
| 120 | * @return bool |
|
| 121 | */ |
|
| 122 | public function isMeetingRunning($meeting) |
|
| 123 | { |
|
| 124 | if (!$meeting instanceof IsMeetingRunningParameters) { |
|
| 125 | $meeting = $this->initIsMeetingRunning($meeting); |
|
| 126 | } |
|
| 127 | ||
| 128 | $this->response = $this->bbb->isMeetingRunning($meeting); |
|
| 129 | if ($this->response->success()) { |
|
| 130 | $response = XmlToArray($this->response->getRawXml()); |
|
| 131 | if (isset($response['running']) && $response['running'] == "true") { |
|
| 132 | return true; |
|
| 133 | } |
|
| 134 | } |
|
| 135 | ||
| 136 | return false; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * Join meeting |
|
| @@ 267-282 (lines=16) @@ | ||
| 264 | * |
|
| 265 | * @return bool |
|
| 266 | */ |
|
| 267 | public function publishRecordings($recording) |
|
| 268 | { |
|
| 269 | if (!$recording instanceof PublishRecordingsParameters) { |
|
| 270 | $recording = $this->initPublishRecordings($recording); |
|
| 271 | } |
|
| 272 | ||
| 273 | $this->response = $this->bbb->publishRecordings($recording); |
|
| 274 | if ($this->response->success()) { |
|
| 275 | $response = XmlToArray($this->response->getRawXml()); |
|
| 276 | if (isset($response['published']) && $response['published'] == "true") { |
|
| 277 | return true; |
|
| 278 | } |
|
| 279 | } |
|
| 280 | ||
| 281 | return false; |
|
| 282 | } |
|
| 283 | ||
| 284 | /** |
|
| 285 | * @param $recording |
|