<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8"); %> 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 // %> <%@ include file="demo_header.jsp"%>

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 meeting_ID = ""; // // This is the URL for to join the meeting as moderator // String joinURL = getJoinURL(username, meetingID, "
Welcome to %%CONFNAME%%.
"); String inviteURL = BigBlueButtonURL + "demo/create.jsp?action=invite&meetingID=" + URLEncoder.encode(meetingID, "UTF-8"); %>

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 enterURL = BigBlueButtonURL + "demo/create.jsp?action=join&username=" + URLEncoder.encode(username, "UTF-8") + "&meetingID=" + URLEncoder.encode(meetingID, "UTF-8"); if (isMeetingRunning(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(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"); %>

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("meetingID")); if (joinURL.startsWith("http://")) { %> <% } else { %> Error: getJoinURL() failed

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