Skip to content
Snippets Groups Projects
Commit a74d8d03 authored by gugat's avatar gugat
Browse files

Change joinUrl method

parent 0d3d4320
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,21 @@ The method joinurl inside bbb_api.jsp has 3(bbb-api-demo version) or 5(bigbluebu
Now I am using the one in bbb-api-demo
demo1.jsp demo2.jsp create.jsp and demo6 are affected and does not work
demo1.jsp demo2.jsp create.jsp(the fifth link) and demo6 are affected and does not work
16-06-2011
Edit joinUrl method in bbb_api.jsp from bbb-api-demo
Declare String good_url
Change method parameters
From
String username, String meetingID, String welcome
To
String username, String meetingID, String record, String welcome, Map<String, String> metadata
Add record variable to String create_parameters (it was in bbb_api.jsp from bigbluebutton-web)
Add conditional for metadata (it was in bbb_api.jsp from bigbluebutton-web)
//usePlugin 'war'
usePlugin 'jetty'
usePlugin 'war'
version = '0.8'
repositories {
mavenCentral()
}
task resolveDeps(dependsOn: configurations.default.buildArtifacts, type: Copy) {
into('lib')
from configurations.default
......@@ -12,20 +13,11 @@ task resolveDeps(dependsOn: configurations.default.buildArtifacts, type: Copy) {
}
war {
baseName = 'demotest' // leads to mywar-0.9.war
baseName = 'demo'
version = ''
}
dependencies {
// classpath group: 'org.apache.commons', name: 'commons-codec', version: '2.0'
// classpath group: 'org.apache.commons', name: 'commons-fileupload', version: '2.0'
// compile group: 'org.apache.commons', name: 'commons-codec', version: '2.0'
// compile group: 'org.apache.commons', name: 'commons-fileupload', version: '2.0'
// compile 'org.apache.commons:commons-codec'
// compile 'org.apache.commons:commons-fileupload'
compile group: 'commons-codec', name: 'commons-codec', version: '1.4'
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.2'
// compile 'commons-codec:commons-codec'
// compile 'commons-fileupload:commons-fileupload'
}
}
......@@ -137,7 +137,7 @@
//
// Create a meeting and return a URL to join it as moderator
//
public String getJoinURL(String username, String meetingID, String welcome) {
public String getJoinURL(String username, String meetingID, String record, String welcome, Map<String, String> metadata) {
String base_url_create = BigBlueButtonURL + "api/create?";
String base_url_join = BigBlueButtonURL + "api/join?";
......@@ -166,7 +166,20 @@
String create_parameters = "name=" + urlEncode(meetingID)
+ "&meetingID=" + urlEncode(meetingID) + welcome_param
+ "&attendeePW=ap&moderatorPW=mp&voiceBridge=" + voiceBridge;
+ "&attendeePW=ap&moderatorPW=mp&voiceBridge=" + voiceBridge
+ "&record=" + record;
if(metadata!=null){
String metadata_params="";
for(String metakey : metadata.keySet()){
metadata_params = metadata_params + "&meta_" + urlEncode(metakey) + "=" + urlEncode(metadata.get(metakey));
}
create_parameters = create_parameters + metadata_params;
}
Document doc = null;
......
......@@ -5,7 +5,7 @@
//String salt = "5e5ff0968546b8aaacce0462a99bca30";
String salt = "5e5ff0968546b8aaacce0462a99bca30";
// This is the URL for the BigBlueButton server 4951c2aea43e5af6d9598610b9e0b6c7
String BigBlueButtonURL = "http://192.168.1.42/bigbluebutton/";
String BigBlueButtonURL = "http://192.168.0.104/bigbluebutton/";
%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment