| @@ 138-153 (lines=16) @@ | ||
| 135 | * | |
| 136 | * @return bool | |
| 137 | */ | |
| 138 | public function isMeetingRunning($meeting) | |
| 139 |     { | |
| 140 |         if (!$meeting instanceof IsMeetingRunningParameters) { | |
| 141 | $meeting = $this->initIsMeetingRunning($meeting); | |
| 142 | } | |
| 143 | ||
| 144 | $this->response = $this->bbb->isMeetingRunning($meeting); | |
| 145 |         if ($this->response->success()) { | |
| 146 | $response = XmlToArray($this->response->getRawXml()); | |
| 147 |             if (isset($response['running']) && $response['running'] == "true") { | |
| 148 | return true; | |
| 149 | } | |
| 150 | } | |
| 151 | ||
| 152 | return false; | |
| 153 | } | |
| 154 | ||
| 155 | /** | |
| 156 | * Join meeting | |
| @@ 283-298 (lines=16) @@ | ||
| 280 | * | |
| 281 | * @return bool | |
| 282 | */ | |
| 283 | public function publishRecordings($recording) | |
| 284 |     { | |
| 285 |         if (!$recording instanceof PublishRecordingsParameters) { | |
| 286 | $recording = $this->initPublishRecordings($recording); | |
| 287 | } | |
| 288 | ||
| 289 | $this->response = $this->bbb->publishRecordings($recording); | |
| 290 |         if ($this->response->success()) { | |
| 291 | $response = XmlToArray($this->response->getRawXml()); | |
| 292 |             if (isset($response['published']) && $response['published'] == "true") { | |
| 293 | return true; | |
| 294 | } | |
| 295 | } | |
| 296 | ||
| 297 | return false; | |
| 298 | } | |
| 299 | ||
| 300 | /** | |
| 301 | * @param $recording | |