|
|
|
@ -167,20 +167,20 @@ class BigBlueButtonBN { |
|
|
|
if ($xml) { |
|
|
|
if ($xml) { |
|
|
|
if($xml->meetingID) |
|
|
|
if($xml->meetingID) |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'message' => $xml->message, |
|
|
|
'message' => $xml->message->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'meetingId' => $xml->meetingID, |
|
|
|
'meetingId' => $xml->meetingID->__toString(), |
|
|
|
'attendeePw' => $xml->attendeePW, |
|
|
|
'attendeePw' => $xml->attendeePW->__toString(), |
|
|
|
'moderatorPw' => $xml->moderatorPW, |
|
|
|
'moderatorPw' => $xml->moderatorPW->__toString(), |
|
|
|
'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
|
|
'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded->__toString(), |
|
|
|
'createTime' => $xml->createTime |
|
|
|
'createTime' => $xml->createTime->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
else |
|
|
|
else |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'message' => $xml->message, |
|
|
|
'message' => $xml->message->__toString(), |
|
|
|
'messageKey' => $xml->messageKey |
|
|
|
'messageKey' => $xml->messageKey->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
@ -249,9 +249,9 @@ class BigBlueButtonBN { |
|
|
|
$xml = $this->_processXmlResponse($this->getEndMeetingURL($endParams)); |
|
|
|
$xml = $this->_processXmlResponse($this->getEndMeetingURL($endParams)); |
|
|
|
if ($xml) { |
|
|
|
if ($xml) { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'message' => $xml->message, |
|
|
|
'message' => $xml->message->__toString(), |
|
|
|
'messageKey' => $xml->messageKey |
|
|
|
'messageKey' => $xml->messageKey->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
@ -285,9 +285,9 @@ class BigBlueButtonBN { |
|
|
|
$xml = $this->_processXmlResponse($this->getIsMeetingRunningUrl($meetingId)); |
|
|
|
$xml = $this->_processXmlResponse($this->getIsMeetingRunningUrl($meetingId)); |
|
|
|
if($xml) { |
|
|
|
if($xml) { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'running' => $xml->running // -- Returns true/false. |
|
|
|
'running' => $xml->running->__toString() // -- Returns true/false. |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
@ -314,38 +314,38 @@ class BigBlueButtonBN { |
|
|
|
// If we don't get a success code, stop processing and return just the returncode: |
|
|
|
// If we don't get a success code, stop processing and return just the returncode: |
|
|
|
if ($xml->returncode != 'SUCCESS') { |
|
|
|
if ($xml->returncode != 'SUCCESS') { |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode |
|
|
|
'returncode' => $xml->returncode->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
elseif ($xml->messageKey == 'noMeetings') { |
|
|
|
elseif ($xml->messageKey == 'noMeetings') { |
|
|
|
/* No meetings on server, so return just this info: */ |
|
|
|
/* No meetings on server, so return just this info: */ |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'message' => $xml->message |
|
|
|
'message' => $xml->message->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
// In this case, we have success and meetings. First return general response: |
|
|
|
// In this case, we have success and meetings. First return general response: |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'message' => $xml->message |
|
|
|
'message' => $xml->message->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
// Then interate through meeting results and return them as part of the array: |
|
|
|
// Then interate through meeting results and return them as part of the array: |
|
|
|
foreach ($xml->meetings->meeting as $m) { |
|
|
|
foreach ($xml->meetings->meeting as $m) { |
|
|
|
$result[] = array( |
|
|
|
$result[] = array( |
|
|
|
'meetingId' => $m->meetingID, |
|
|
|
'meetingId' => $m->meetingID->__toString(), |
|
|
|
'meetingName' => $m->meetingName, |
|
|
|
'meetingName' => $m->meetingName->__toString(), |
|
|
|
'createTime' => $m->createTime, |
|
|
|
'createTime' => $m->createTime->__toString(), |
|
|
|
'attendeePw' => $m->attendeePW, |
|
|
|
'attendeePw' => $m->attendeePW->__toString(), |
|
|
|
'moderatorPw' => $m->moderatorPW, |
|
|
|
'moderatorPw' => $m->moderatorPW->__toString(), |
|
|
|
'hasBeenForciblyEnded' => $m->hasBeenForciblyEnded, |
|
|
|
'hasBeenForciblyEnded' => $m->hasBeenForciblyEnded->__toString(), |
|
|
|
'running' => $m->running |
|
|
|
'running' => $m->running->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -383,39 +383,39 @@ class BigBlueButtonBN { |
|
|
|
// If we don't get a success code or messageKey, find out why: |
|
|
|
// If we don't get a success code or messageKey, find out why: |
|
|
|
if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) { |
|
|
|
if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) { |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'message' => $xml->message |
|
|
|
'message' => $xml->message->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
// In this case, we have success and meeting info: |
|
|
|
// In this case, we have success and meeting info: |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'meetingName' => $xml->meetingName, |
|
|
|
'meetingName' => $xml->meetingName->__toString(), |
|
|
|
'meetingId' => $xml->meetingID, |
|
|
|
'meetingId' => $xml->meetingID->__toString(), |
|
|
|
'createTime' => $xml->createTime, |
|
|
|
'createTime' => $xml->createTime->__toString(), |
|
|
|
'voiceBridge' => $xml->voiceBridge, |
|
|
|
'voiceBridge' => $xml->voiceBridge->__toString(), |
|
|
|
'attendeePw' => $xml->attendeePW, |
|
|
|
'attendeePw' => $xml->attendeePW->__toString(), |
|
|
|
'moderatorPw' => $xml->moderatorPW, |
|
|
|
'moderatorPw' => $xml->moderatorPW->__toString(), |
|
|
|
'running' => $xml->running, |
|
|
|
'running' => $xml->running->__toString(), |
|
|
|
'recording' => $xml->recording, |
|
|
|
'recording' => $xml->recording->__toString(), |
|
|
|
'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded, |
|
|
|
'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded->__toString(), |
|
|
|
'startTime' => $xml->startTime, |
|
|
|
'startTime' => $xml->startTime->__toString(), |
|
|
|
'endTime' => $xml->endTime, |
|
|
|
'endTime' => $xml->endTime->__toString(), |
|
|
|
'participantCount' => $xml->participantCount, |
|
|
|
'participantCount' => $xml->participantCount->__toString(), |
|
|
|
'maxUsers' => $xml->maxUsers, |
|
|
|
'maxUsers' => $xml->maxUsers->__toString(), |
|
|
|
'moderatorCount' => $xml->moderatorCount, |
|
|
|
'moderatorCount' => $xml->moderatorCount->__toString(), |
|
|
|
); |
|
|
|
); |
|
|
|
// Then interate through attendee results and return them as part of the array: |
|
|
|
// Then interate through attendee results and return them as part of the array: |
|
|
|
foreach ($xml->attendees->attendee as $a) { |
|
|
|
foreach ($xml->attendees->attendee as $a) { |
|
|
|
$result[] = array( |
|
|
|
$result[] = array( |
|
|
|
'userId' => $a->userID, |
|
|
|
'userId' => $a->userID->__toString(), |
|
|
|
'fullName' => $a->fullName, |
|
|
|
'fullName' => $a->fullName->__toString(), |
|
|
|
'role' => $a->role |
|
|
|
'role' => $a->role->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -458,37 +458,37 @@ class BigBlueButtonBN { |
|
|
|
// If we don't get a success code or messageKey, find out why: |
|
|
|
// If we don't get a success code or messageKey, find out why: |
|
|
|
if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) { |
|
|
|
if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) { |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'message' => $xml->message |
|
|
|
'message' => $xml->message->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
return $result; |
|
|
|
return $result; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
// In this case, we have success and recording info: |
|
|
|
// In this case, we have success and recording info: |
|
|
|
$result = array( |
|
|
|
$result = array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'messageKey' => $xml->messageKey, |
|
|
|
'messageKey' => $xml->messageKey->__toString(), |
|
|
|
'message' => $xml->message |
|
|
|
'message' => $xml->message->__toString() |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
foreach ($xml->recordings->recording as $r) { |
|
|
|
foreach ($xml->recordings->recording as $r) { |
|
|
|
$result[] = array( |
|
|
|
$result[] = array( |
|
|
|
'recordId' => $r->recordID, |
|
|
|
'recordId' => $r->recordID->__toString(), |
|
|
|
'meetingId' => $r->meetingID, |
|
|
|
'meetingId' => $r->meetingID->__toString(), |
|
|
|
'name' => $r->name, |
|
|
|
'name' => $r->name->__toString(), |
|
|
|
'published' => $r->published, |
|
|
|
'published' => $r->published->__toString(), |
|
|
|
'startTime' => $r->startTime, |
|
|
|
'startTime' => $r->startTime->__toString(), |
|
|
|
'endTime' => $r->endTime, |
|
|
|
'endTime' => $r->endTime->__toString(), |
|
|
|
'playbackFormatType' => $r->playback->format->type, |
|
|
|
'playbackFormatType' => $r->playback->format->type->__toString(), |
|
|
|
'playbackFormatUrl' => $r->playback->format->url, |
|
|
|
'playbackFormatUrl' => $r->playback->format->url->__toString(), |
|
|
|
'playbackFormatLength' => $r->playback->format->length, |
|
|
|
'playbackFormatLength' => $r->playback->format->length->__toString(), |
|
|
|
'metadataTitle' => $r->metadata->title, |
|
|
|
'metadataTitle' => $r->metadata->title->__toString(), |
|
|
|
'metadataSubject' => $r->metadata->subject, |
|
|
|
'metadataSubject' => $r->metadata->subject->__toString(), |
|
|
|
'metadataDescription' => $r->metadata->description, |
|
|
|
'metadataDescription' => $r->metadata->description->__toString(), |
|
|
|
'metadataCreator' => $r->metadata->creator, |
|
|
|
'metadataCreator' => $r->metadata->creator->__toString(), |
|
|
|
'metadataContributor' => $r->metadata->contributor, |
|
|
|
'metadataContributor' => $r->metadata->contributor->__toString(), |
|
|
|
'metadataLanguage' => $r->metadata->language, |
|
|
|
'metadataLanguage' => $r->metadata->language->__toString(), |
|
|
|
// Add more here as needed for your app depending on your |
|
|
|
// Add more here as needed for your app depending on your |
|
|
|
// use of metadata when creating recordings. |
|
|
|
// use of metadata when creating recordings. |
|
|
|
); |
|
|
|
); |
|
|
|
@ -526,9 +526,9 @@ class BigBlueButtonBN { |
|
|
|
$xml = $this->_processXmlResponse($this->getPublishRecordingsUrl($recordingParams)); |
|
|
|
$xml = $this->_processXmlResponse($this->getPublishRecordingsUrl($recordingParams)); |
|
|
|
if($xml) { |
|
|
|
if($xml) { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'published' => $xml->published // -- Returns true/false. |
|
|
|
'published' => $xml->published->__toString() // -- Returns true/false. |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
@ -559,9 +559,9 @@ class BigBlueButtonBN { |
|
|
|
$xml = $this->_processXmlResponse($this->getDeleteRecordingsUrl($recordingParams)); |
|
|
|
$xml = $this->_processXmlResponse($this->getDeleteRecordingsUrl($recordingParams)); |
|
|
|
if($xml) { |
|
|
|
if($xml) { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'returncode' => $xml->returncode, |
|
|
|
'returncode' => $xml->returncode->__toString(), |
|
|
|
'deleted' => $xml->deleted // -- Returns true/false. |
|
|
|
'deleted' => $xml->deleted->__toString() // -- Returns true/false. |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|