| @@ 106-121 (lines=16) @@ | ||
| 103 | * |
|
| 104 | * @return bool |
|
| 105 | */ |
|
| 106 | public function isMeetingRunning($meeting) |
|
| 107 | { |
|
| 108 | if (!$meeting instanceof IsMeetingRunningParameters) { |
|
| 109 | $meeting = $this->initIsMeetingRunning($meeting); |
|
| 110 | } |
|
| 111 | ||
| 112 | $this->response = $this->bbb->isMeetingRunning($meeting); |
|
| 113 | if ($this->response->success()) { |
|
| 114 | $response = XmlToArray($this->response->getRawXml()); |
|
| 115 | if (isset($response['running']) && $response['running'] == "true") { |
|
| 116 | return true; |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | return false; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Join meeting |
|
| @@ 250-265 (lines=16) @@ | ||
| 247 | * |
|
| 248 | * @return bool |
|
| 249 | */ |
|
| 250 | public function publishRecordings($recording) |
|
| 251 | { |
|
| 252 | if (!$recording instanceof PublishRecordingsParameters) { |
|
| 253 | $recording = $this->initPublishRecordings($recording); |
|
| 254 | } |
|
| 255 | ||
| 256 | $this->response = $this->bbb->publishRecordings($recording); |
|
| 257 | if ($this->response->success()) { |
|
| 258 | $response = XmlToArray($this->response->getRawXml()); |
|
| 259 | if (isset($response['published']) && $response['published'] == "true") { |
|
| 260 | return true; |
|
| 261 | } |
|
| 262 | } |
|
| 263 | ||
| 264 | return false; |
|
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * @param $recording |
|