GithubHelp home page GithubHelp logo

bbb-php-api's Introduction

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('測試')
    ->setModeratorOnlyMessage('老師才看的到');
$meeting->setDuration(20);
$meeting->setRecord("true"); //Old version
$meeting->setAutoStartRecording(false);
$meeting->setAllowStartStopRecording(true);
$meeting->setLogoutUrl('https://YourDomain');

bbb-php-api's People

Contributors

deviny avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.