Fetching contributors…
Cannot retrieve contributors at this time
129 lines (97 sloc) 3.41 KB
BigBlueButton -
Copyright (c) 2008-2015 by respective authors (see below). All rights reserved.
BigBlueButton is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with BigBlueButton; if not, If not, see <>.
Author: Fred Dixon <>
<%@ page language="java" contentType="text/html; charset=UTF-8"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Join Meeting via HTML5 Client</title>
<p>You must have the BigBlueButton HTML5 client installed to use this API demo.</p>
<%@ include file="bbb_api.jsp"%>
if (request.getParameterMap().isEmpty()) {
// Assume we want to create a meeting
<%@ include file="demo_header.jsp"%>
<h2>Join Meeting via HTML5 Client</h2>
<table cellpadding="5" cellspacing="5" style="width: 400px; ">
<td style="text-align: right; ">Full Name:</td>
<td style="width: 5px; ">&nbsp;</td>
<td style="text-align: left "><input type="text" autofocus required name="username" /></td>
<td style="text-align: right; ">Meeting Name:</td>
<td style="width: 5px; ">&nbsp;</td>
<td style="text-align: left "><input type="text" name="meetingname" value="Demo Meeting" /></td>
<td><input type="submit" value="Join" /></td>
<INPUT TYPE=hidden NAME=action VALUE="create">
} else if (request.getParameter("action").equals("create")) {
// Got an action=create
String username = request.getParameter("username");
String meetingname = request.getParameter("meetingname");
String joinURL = getJoinURLHTML5(username, meetingname, "false", null, null, null);
Document doc = null;
doc = parseXml(getURL(joinURL));
//Extract data from the xml
String meetingId = doc.getElementsByTagName("meeting_id").item(0).getTextContent();
String userId = doc.getElementsByTagName("user_id").item(0).getTextContent();
String authToken = doc.getElementsByTagName("auth_token").item(0).getTextContent();
String ip = BigBlueButtonURL.split("\\/bigbluebutton")[0];
// redirect towards the html5 client which is waiting for the following parameters
String html5url = ip + "/html5client/join/" + meetingId + "/" + userId + "/" + authToken;
if (joinURL.startsWith("http://") || joinURL.startsWith("https://")) {
<script language="javascript" type="text/javascript">
} else {
Error: getJoinURL() failed
<%=joinURL %>
<%@ include file="demo_footer.jsp"%>