Example #1
1
function recording()
{
    global $args;
    $meeting_id = $args[0];
    $bbb = new BigBlueButton\BigBlueButton();
    $recordingParam = new BigBlueButton\Parameters\GetRecordingsParameters($meeting_id);
    $recordingParam->setState('any');
    $recordingURL = $bbb->getRecordingsUrl($recordingParam);
    $xml = '<?xml version="1.0"?> <response><returncode>SUCCESS</returncode>';
    $xml .= '<recordingurl><![CDATA[' . $recordingURL . ']]></recordingurl></response>';
    return $xml;
    //return file_get_contents($recordings);
}
Example #2
0
         require_once $dir . 'html/home.php';
         exit;
     }
     //header('Location :' . $joinURL);
 } else {
     if ($_REQUEST['action'] == 'list_classrooms') {
         $meetingData = $model->getMeetings();
         require_once $dir . 'html/list_classrooms.php';
         //$meetingsObj = $bbb->getMeetings();
         //$meetings = $meetingsObj->getMeetings();
         //echo '<PRE>';print_r($meetings);exit;
     } else {
         if ($_REQUEST['action'] == 'view_recording') {
             $meeting_id = addslashes($_REQUEST['meeting_id']);
             //$meeting = $model->getMeeting($meeting_id);
             $recordingParam = new BigBlueButton\Parameters\GetRecordingsParameters($meeting_id);
             $recordingParam->setState('any');
             $recordings = $bbb->getRecordingsWithXmlResponseArray($recordingParam);
             $playbackURL = $recordings[0]['playbackFormatUrl'][0] . '';
             if ($playbackURL != '') {
                 echo "<script>window.location.href =  '{$playbackURL}' ;</script>";
                 exit;
             } else {
                 $_SESSION['msg'] = 'Recordings will available after 10 - 20 mins, once meeting is completed';
                 header('location: index.php?action=list_classrooms');
             }
             /*$meetingInfoParam = new BigBlueButton\Parameters\GetMeetingInfoParameters($meeting_id,$meeting['moderator_pass']);
             	$meetingObj = $bbb->getMeetingInfo($meetingInfoParam);
             	$meetingData = $meetingObj->getMeetingInfo(); */
         } else {
             if ($_REQUEST['action'] == 'classroom_info') {