2009-12-24 10:01:26 +08:00
<!--
BigBlueButton - http://www.bigbluebutton.org
Copyright (c) 2008-2009 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
version.
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 <http://www.gnu.org/licenses/>.
Author: Fred Dixon <ffdixon@bigbluebutton.org>
-->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
2009-12-31 06:53:57 +08:00
<title>BigBlueButton API Demos</title>
2009-12-24 10:01:26 +08:00
</head>
<body>
2009-12-31 04:11:08 +08:00
<%@ include file="bbb_api.jsp"%>
2009-12-24 10:01:26 +08:00
<br>
<%
if (request.getParameterMap().isEmpty()) {
//
// Assume we want to create a meeting
//
%>
2010-01-01 05:07:22 +08:00
2010-01-23 09:22:23 +08:00
<a href="demo1.jsp">aJoin a Meeting</a> | <a href="demo2.jsp">Join a Selected Meeting</a> | <a href="demo3.jsp">Create Your Own Meeting and Invite Others</a> | <a href="/">Home</a>
2010-01-01 05:07:22 +08:00
<hr />
2009-12-31 06:53:57 +08:00
<h2>Demo #1: Join the Demo Meeting.</h2>
2009-12-24 10:01:26 +08:00
<hr />
<FORM NAME="form1" METHOD="GET">
2010-01-01 05:07:22 +08:00
<table width=600 cellspacing="20" cellpadding="20"
style="border-collapse: collapse; border-right-color: rgb(136, 136, 136);"
border=3>
<tbody>
<tr>
<td width="50%">
<p />Join <strong>Demo Meeting</strong>
</td>
<td width="50%">Enter your name: <input type="text"
name="username" /> <br />
<INPUT TYPE=hidden NAME=action VALUE="create"> <br />
<input type="submit" value="Join" /></td>
</tr>
</tbody>
2009-12-24 10:01:26 +08:00
</table>
</FORM>
2010-01-01 05:07:22 +08:00
<%
2009-12-24 10:01:26 +08:00
} else if (request.getParameter("action").equals("create")) {
//
// Got an action=create
//
2009-12-31 06:53:57 +08:00
String username = URLEncoder.encode(request.getParameter("username"),"UTF-8");
2009-12-24 10:01:26 +08:00
String meetingID = URLEncoder.encode("Demo Meeting","UTF-8");
2009-12-31 02:36:20 +08:00
String joinURL = getJoinURL(username, meetingID);
2009-12-24 10:01:26 +08:00
2010-01-23 09:22:23 +08:00
if ("".equals(joinURL)) {
%>
Error: getJoinURL() returned an empty URL
<%
} else {
%>
2010-01-01 05:07:22 +08:00
2009-12-24 11:38:34 +08:00
<script language="javascript" type="text/javascript">
2009-12-24 10:01:26 +08:00
window.location.href="<%=joinURL%>";
</script>
2010-01-23 09:22:23 +08:00
<%
}
}
%>
2010-01-01 05:07:22 +08:00
<%@ include file="demo_footer.jsp"%>
2009-12-24 10:01:26 +08:00
</body>
2010-01-01 05:07:22 +08:00
</html>