コード例 #1
0
ファイル: demo3.php プロジェクト: neerajcse/bigbluebutton
			{
				/*
				 * The meeting has not yet started, so check until we get back the status that the meeting is running
				 */
				$step = 4;

				$checkMeetingStatus = "?action=isMeetingRunning&meetingToken=".urlencode($_REQUEST['meetingToken']).'&meetingID='.urlencode($_REQUEST['meetingID']);
			}
		}
		break;
	case 'isMeetingRunning':
		/*
		 * This function proxy the request "isMeetingRunning" through PHP Script to BBB Server so we don't have any AJAX security issue
		 */
		ob_clean();
		$checkMeetingStatus = getURLisMeetingRunning($_REQUEST['meetingToken'], $_REQUEST['meetingID']);
		echo file_get_contents($checkMeetingStatus);
		die;
		break;
	case 'join':
		/*
		 * We have an invite request to join an existing meeting and the meeting is running
		 * We don't need to pass a meeting description as it's already been set by the first time the meeting was created.
		 */
		$joinURL = getJoinURLViewer($_REQUEST['username'], $_REQUEST['meetingToken']);
		if (substr($joinURL, 0, 7) == 'http://')
		{
			?>
	<script language="javascript" type="text/javascript">
	  window.location.href="<?php 
echo $joinURL;
コード例 #2
0
function isMeetingRunning($meetingToken, $meetingID)
{
	$xml = bbb_wrap_simplexml_load_file(getURLisMeetingRunning($meetingToken, $meetingID));
	if ($xml && $xml->returncode == 'SUCCESS')
		return (($xml->running == 'TRUE')?true:false);
	else
		return (false);
}