<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Create Your Own Meeting <%@ include file="bbb_api.jsp"%> <%@ page import="java.util.regex.*"%>
<% if (request.getParameterMap().isEmpty()) { // // Assume we want to create a meeting // %>
Join a Course | Join a Selected Course | Join a Selected Course (password required) | Create Your Own Meeting

Create Your Own Meeting

Create your own meeting.

Step 1. Enter your name:

<% } else if (request.getParameter("action").equals("create")) { // // User has requested to create a meeting // String username = request.getParameter("username1"); String meetingID = username + "'s meeting"; String meetingToken = ""; // // This is the URL for to join the meeting as moderator // String joinURL = getJoinURL(username, meetingID, "
Welcome to %%CONFNAME%%.
"); // // We're going to extract the meetingToken to enable others to join as viewers // String p = "meetingToken=[^&]*"; Pattern pattern = Pattern.compile(p); Matcher matcher = pattern.matcher(joinURL); if (matcher.find()) { meetingToken = joinURL.substring(matcher.start(), matcher .end()); } else { out.print("Error: Did not find meeting token."); } //out.print ("Match : " + meetingToken ); String inviteURL = BigBlueButtonURL + "demo/create.jsp?action=invite&meetingID=" + URLEncoder.encode(meetingID, "UTF-8") + "&" + meetingToken; %>

Meeting Created


<%=username%>'s meeting has been created.

 

Step 2. Invite others using the following link (shown below):

 

Step 3. Click the following link to start your meeting:

 

Start Meeting

 

<% } else if (request.getParameter("action").equals("enter")) { // // The user is now attempting to joing the meeting // String meetingID = request.getParameter("meetingID"); String username = request.getParameter("username"); String meetingToken = request.getParameter("meetingToken"); String enterURL = BigBlueButtonURL + URLEncoder.encode(username, "UTF-8") + "&meetingToken=" + URLEncoder.encode(meetingToken, "UTF-8"); if (isMeetingRunning(meetingToken, meetingID).equals("true")) { // // The meeting has started -- bring the user into the meeting. // %> <% } else { // // The meeting has not yet started, so check until we get back the status that the meeting is running // String checkMeetingStatus = getURLisMeetingRunning( meetingToken, meetingID); %>

<%=meetingID%> has not yet started.


Hi <%=username%>,

Now waiting for the moderator to start <%=meetingID%>.


(Your browser will automatically refresh and join the meeting when it starts.)

<% } } else if (request.getParameter("action").equals("invite")) { // // We have an invite to an active meeting. Ask the person for their name // so they can join. // String meetingID = request.getParameter("meetingID"); String meetingToken = request.getParameter("meetingToken"); %>

Invite


You have been invited to join
<%=meetingID%>.

Enter your name:

<% } else if (request.getParameter("action").equals("join")) { // // We have an invite request to join an existing meeting and the meeting is running // // We don't need to pass a meeting descritpion as it's already been set by the first time // the meeting was created. String joinURL = getJoinURLViewer(request.getParameter("username"), request.getParameter("meetingToken")); if (joinURL.startsWith("http://")) { %> <% } else { %> Error: getJoinURL() failed

<%=joinURL%> <% } } %> <%@ include file="demo_footer.jsp"%>