Skip to content

DevinY/bbb-php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigBlueButton PHP API

Original version available at: https://github.com/petermentzer/bbb-api-php

Re-packed by Devin Yang.

https://yty.ccc.tc/demo/

Example

Create Meeting and Join Link.

<?php

use DevinY\BigBlueButtonPhpApi\Bbb;
require __DIR__.'/../vendor/autoload.php';
define("DEFAULT_SECURITY_SALT", "YOUR SALT");
define("DEFAULT_SERVER_BASE_URL", "YOUR SERVER URL");

$meeting_id = time();
$meeting = new Bbb($meeting_id);
$meeting->setName("This is Meeting Name");
echo sprintf("<a href='%s'>Join as Student</a><br/>",$meeting->attendee("John"));
echo sprintf("<a href='%s'>Join as Teacher</a><br/>",$meeting->moderator("Devin"));
?>

Preupload slides

<?php
$meetingObj->slides(['https://ccc.test/p1.pdf','https://ccc.test/p2.pdf']);
?>

Define Different Server

<?php
$meeting = new Bbb("test");
$meeting->setServerBaseUrl('YOUR SERVER URL');
$meeting->setSecret('YOUR SALT');
?>

SetClinetPage by default is BigBlueButton.html

<?php
$meetingObj->setClientPage("ccc.html");
?>

More Available methods

$meeting->setWelcome('Welecome message for all')
    ->setModeratorOnlyMessage('Only teacher can see this messsage');
$meeting->setDuration(20);
$meeting->setRecord("true"); //Old version
$meeting->setAutoStartRecording(false);
$meeting->setAllowStartStopRecording(true);
$meeting->setLogoutUrl('https://YourDomain');