Little change in demo6 api

67 views
Skip to first unread message

Alex Skobelev

unread,
Dec 17, 2014, 2:53:09 AM12/17/14
to bigblueb...@googlegroups.com
If it can help someone, a little change was made.
was added this string in demo6

<h2>Meeting created</h2>
URL to invite:
<code><%=inviteURL%></code><br />
To begin meeting click <a href="
<%=joinURL%>">here</a>.




full api code (if someone needs)
<!--

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

-->


<%@ page language="java" contentType="text/html; charset=UTF-8"
<------>pageEncoding="UTF-8"%>
<%.
<------>request.setCharacterEncoding("UTF-8");.
<------>response.setCharacterEncoding("UTF-8");.
%>
<!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=UTF-8">
<------>
<title>Record (Matterhorn)</title>
<------>
<style type="text/css">
<------> #formcreate{.
<------> <----->width:500px;.
<------> <----->height:500px;
<------> }
<------> #formcreate ul{
<------> <----->list-style:none;
<------> }
<------> #formcreate li{
<------> <----->display:block;
<------> <----->width:400px;
<------> <----->margin-bottom:5px;
<------> }
<------> #formcreate label{
<------> <----->display:block;
<------> <----->float:left;
<------> <----->width:150px;
<------> <----->text-align:right;
<------> }
<------> #labdescription{
<------> <----->vertical-align:top;
<------> }
<------>
</style>
</head>
<body>


<%@ include file="bbb_api.jsp"%>


<%


<%
<------>if (request.getParameterMap().isEmpty()) {
<------><------>//
<------><------>// Assume we want to create a meeting
<------><------>//
%>
<------><------><------><------><------>
<label for="meta_title">Title:</label>
<------><------><------><------><------>
<input type="text" id="meta_title" name="meta_title" />>
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------><------><------>
<label for="meta_subject">Subject:</label>
<------><------><------><------><------>
<input type="text" id="meta_subject" name="meta_subject" />
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------><------><------>
<label id="labdescription" for="meta_description">Description:</label>
<------><------><------><------><------>
<textarea id="meta_description" name="meta_description" cols="17" rows="3"></textarea>
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------><------><------>
<label for="meta_creator">Creator:</label>
<------><------><------><------><------>
<input type="text" id="meta_creator" name="meta_creator" />
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------><------><------>
<label for="meta_contributor">Contributor:</label>
<------><------><------><------><------>
<input type="text" id="meta_contributor" name="meta_contributor" />
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------><------><------>
<label for="meta_language">Language:</label>
<------><------><------><------><------>
<input type="text" id="meta_language" name="meta_language" />
<------><------><------><------>
</li>
<------><------><------><------>
<li>
<------><------><------>
</ul>
<------><------>
</fieldset>
<------><------>
<input type="submit" value="Create" >
<------><------>
<input type="hidden" name="action" value="create" />
<------>
</form>

<%
<------>} else if (request.getParameter("action").equals("create")) {
<------><------>
<------><------>String confname = request.getParameter("confname");
<------><------>String username = request.getParameter("username");
<------><------>
<------><------>//metadata
<------><------>Map
<String,String> metadata=new HashMap<String,String>();
<------><------>
<------><------>metadata.put("title",request.getParameter("meta_title"));
<------><------>metadata.put("subject",request.getParameter("meta_subject"));
<------><------>metadata.put("description",request.getParameter("meta_description"));
<------><------>metadata.put("creator",request.getParameter("meta_creator"));
<------><------>metadata.put("contributor",request.getParameter("meta_contributor"));
<------><------>metadata.put("language",request.getParameter("meta_language"));
<------><------>metadata.put("identifier",request.getParameter("meta_identifier"));

<------><------>//
<------><------>// This is the URL for to join the meeting as moderator
<------><------>//
<------><------>String url = BigBlueButtonURL.replace("bigbluebutton/","demo/");
<------><------>String preUploadPDF = "
<?xml version='1.0' encoding='UTF-8'?><modules><module name='presentation'><document url='"+url+"pdfs
<------><------>String joinURL = getJoinURL(username, confname, "true", null, metadata, preUploadPDF);
<------><------>String inviteURL = url + "create.jsp?action=invite&meetingID=" + URLEncoder.encode(confname, "UTF-8");
<------><------>if (joinURL.startsWith("http://")) {.
%>
%>
<h2>Meeting created</h2>
URL to invite:
<code><%=inviteURL%></code><br />
To begin meeting click <a href="
<%=joinURL%>">here</a>.


<%
<------>} else {
%>

Error: getJoinURL() failed
<p/>
<%=joinURL %>

<%.
<------>}
}.
%>





</body>
</html>



Fred Dixon

unread,
Dec 27, 2014, 9:08:43 AM12/27/14
to BigBlueButton-dev
Hi Alex,

Not clear what your asking or trying to do -- did you try making a change and there was an error?

Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

brahmi amine

unread,
Dec 30, 2014, 4:16:52 AM12/30/14
to bigblueb...@googlegroups.com
where is your problem ?

Alex S

unread,
Jan 16, 2015, 5:03:48 AM1/16/15
to bigblueb...@googlegroups.com
Hi Fred, there's no problem, jest addet a link generation after meeting created :)
Reply all
Reply to author
Forward
0 new messages