Beispiel #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);
}
Beispiel #2
0
<?php

error_reporting(-1);
require_once 'vendor/autoload.php';
$bbb = new BigBlueButton\BigBlueButton();
$createMeetingParam = new BigBlueButton\Parameters\CreateMeetingParameters('meeeting-id2', 'my test meeting');
print_r($bbb->createMeeting($createMeetingParam));
//exit;
$joinMeetingParam = new BigBlueButton\Parameters\JoinMeetingParameters('meeeting-id2', 'moderator1', '9x5KTpuN');
echo $bbb->getJoinMeetingURL($joinMeetingParam);
Beispiel #3
0
<?php

session_start();
error_reporting(0);
ini_set('max_execution_time', 0);
$site_url = 'http://' . $_SERVER['HTTP_HOST'] . '/jobscraperv2/bbb/admin/';
$front_end_url = 'http://' . $_SERVER['HTTP_HOST'] . '/jobscraperv2/bbb/';
$dir = dirname(__FILE__) . '/';
require_once $dir . 'admin/db.php';
require_once $dir . 'admin/model.php';
require_once 'vendor/autoload.php';
$bbb = new BigBlueButton\BigBlueButton();
$model = new Model();
//$meetingConfig = 'MEET-';
$_POST = array_map('addslashes', $_POST);
if ($_REQUEST['action'] == 'invite') {
    $meeting_id = addslashes($_REQUEST['meeting_id']);
    require_once $dir . 'admin/html/join_attendee.php';
} else {
    if ($_REQUEST['action'] == 'join') {
        echo 'Please wait....';
        $name = $_POST['name'];
        $meeting_id = $_POST['meeting_id'];
        $meeting = $model->getMeeting($meeting_id);
        //echo '<PRE>'; print_r($meeting);
        $joinMeetingParam = new BigBlueButton\Parameters\JoinMeetingParameters($meeting_id, $name, $meeting['attendee_pass']);
        $joinURL = $bbb->getJoinMeetingURL($joinMeetingParam);
        if (strpos($joinURL, 'http') !== FALSE || strpos($joinURL, 'https') !== FALSE) {
            $model->addUser($meeting_id, 'viewer', $name);
            echo "<script>window.location.href =  '{$joinURL}' ;</script>";
            exit;
Beispiel #4
0
<?php

session_start();
error_reporting(0);
ini_set('max_execution_time', 0);
//echo __FILE__;
$site_url = 'http://' . $_SERVER['HTTP_HOST'] . '/jobscraperv2/bbb/admin/';
$front_end_url = 'http://' . $_SERVER['HTTP_HOST'] . '/jobscraperv2/bbb/';
$dir = dirname(__FILE__) . '/';
require_once $dir . 'db.php';
require_once $dir . 'model.php';
require_once '../vendor/autoload.php';
$bbb = new BigBlueButton\BigBlueButton();
$model = new Model();
//$meetingConfig = 'MEET-';
$_POST = array_map('addslashes', $_POST);
if ($_REQUEST['action'] == 'create_classroom') {
    $success_meeting_id = '';
    $meeting_id = $model->createMeeting($_POST['name'], $_POST['admin_name']);
    $createMeetingParam = new BigBlueButton\Parameters\CreateMeetingParameters($meeting_id, $_POST['name']);
    $createMeetingParam->setRecord('true');
    $createMeetingParam->setAutoStartRecording('true');
    //$logout_url = $front_end_url.'frontend.php?action=end_meeting&meeting_id='.;
    //$createMeetingParam->setLogoutUrl();
    $meetingCreated = $bbb->createMeeting($createMeetingParam);
    if ($meetingCreated->getReturnCode() == 'SUCCESS') {
        $updateMeeting = array();
        $updateMeeting['return_response'] = $meetingCreated->getRawXml()->asXML();
        $updateMeeting['attendee_pass'] = $meetingCreated->getAttendeePassword();
        $updateMeeting['moderator_pass'] = $meetingCreated->getModeratorPassword();
        $updateMeeting['created_on'] = strtotime($meetingCreated->getCreationDate());