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