Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
b34532c2
Commit
b34532c2
authored
8 years ago
by
Anton Georgiev
Browse files
Options
Downloads
Patches
Plain Diff
add parameter to join as moderator
parent
b0a46474
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bbb-api-demo/src/main/webapp/bbb_api.jsp
+16
-7
16 additions, 7 deletions
bbb-api-demo/src/main/webapp/bbb_api.jsp
bbb-api-demo/src/main/webapp/demoHTML5.jsp
+10
-2
10 additions, 2 deletions
bbb-api-demo/src/main/webapp/demoHTML5.jsp
with
26 additions
and
9 deletions
bbb-api-demo/src/main/webapp/bbb_api.jsp
+
16
−
7
View file @
b34532c2
...
...
@@ -243,7 +243,8 @@ public String getJoinURL(String username, String meetingID, String record, Strin
// - record ["true", "false"]
// - welcome message (null causes BigBlueButton to use the default welcome message
// - metadata (passed through when record="true"
// - xml (used for pre-upload of slides)_
// - xml (used for pre-upload of slides)
// - isModerator [true, false]
//
// Returned
// - valid join URL using the username
...
...
@@ -251,9 +252,7 @@ public String getJoinURL(String username, String meetingID, String record, Strin
// VERSION ADJUSTED TO THE NEEDS OF THE HTML5 CLIENT
// -redirect=false //so that we get xml returned instead of being redirected to the meeting
// -password=ap //at this stage the html5 client is viewer only (Feb 2015)
public
String
getJoinURLHTML5
(
String
username
,
String
meetingID
,
String
record
,
String
welcome
,
Map
<
String
,
String
>
metadata
,
String
xml
)
{
public
String
getJoinURLHTML5
(
String
username
,
String
meetingID
,
String
record
,
String
welcome
,
Map
<
String
,
String
>
metadata
,
String
xml
,
boolean
isModerator
)
{
String
base_url_create
=
BigBlueButtonURL
+
"api/create?"
;
String
base_url_join
=
BigBlueButtonURL
+
"api/join?"
;
...
...
@@ -268,6 +267,13 @@ public String getJoinURLHTML5(String username, String meetingID, String record,
xml_param
=
xml
;
}
String
defaultModeratorPW
=
"mp"
;
String
defaultAttendeePW
=
"ap"
;
String
html5UserPassword
=
defaultAttendeePW
;
// default html5 user to attendee
if
(
isModerator
)
{
html5UserPassword
=
defaultModeratorPW
;
}
Random
random
=
new
Random
();
String
voiceBridge_param
=
"&voiceBridge="
+
(
70000
+
random
.
nextInt
(
9999
));
...
...
@@ -286,8 +292,11 @@ public String getJoinURLHTML5(String username, String meetingID, String record,
//
String
create_parameters
=
"name="
+
urlEncode
(
meetingID
)
+
"&meetingID="
+
urlEncode
(
meetingID
)
+
welcome_param
+
voiceBridge_param
+
"&attendeePW=ap&moderatorPW=mp"
+
"&meetingID="
+
urlEncode
(
meetingID
)
+
welcome_param
+
voiceBridge_param
+
"&attendeePW="
+
defaultAttendeePW
+
"&moderatorPW="
+
defaultModeratorPW
+
"&record="
+
record
+
getMetaData
(
metadata
);
...
...
@@ -314,7 +323,7 @@ public String getJoinURLHTML5(String username, String meetingID, String record,
// and will pass them to the joining url for the html5 client (different format)
// Also we set PASSWORD=AP FOR ATTENDEE
String
join_parameters
=
"meetingID="
+
urlEncode
(
meetingID
)
+
"&fullName="
+
urlEncode
(
username
)
+
"&redirect=false&password=
ap"
;
+
"&fullName="
+
urlEncode
(
username
)
+
"&redirect=false&password=
"
+
html5UserPassword
;
return
base_url_join
+
join_parameters
+
"&checksum="
+
checksum
(
"join"
+
join_parameters
+
salt
);
...
...
This diff is collapsed.
Click to expand it.
bbb-api-demo/src/main/webapp/demoHTML5.jsp
+
10
−
2
View file @
b34532c2
...
...
@@ -61,11 +61,18 @@ if (request.getParameterMap().isEmpty()) {
<tr>
<td>
</td>
<td
style=
"text-align: right; "
>
Meeting Name:
</td>
<td
style=
"text-align: right; "
>
(optional)
Meeting Name:
</td>
<td
style=
"width: 5px; "
>
</td>
<td
style=
"text-align: left "
><input
type=
"text"
name=
"meetingname"
value=
"Demo Meeting"
/></td>
<tr>
<tr>
<td>
</td>
<td
style=
"text-align: right; "
>
(optional) Moderator Role:
</td>
<td
style=
"width: 5px; "
>
</td>
<td
style=
"text-align: left "
><input
type=
checkbox
name=
isModerator
value=
"true"
></td>
<tr>
<tr>
<td>
</td>
<td>
</td>
...
...
@@ -87,8 +94,9 @@ if (request.getParameterMap().isEmpty()) {
String
username
=
request
.
getParameter
(
"username"
);
String
meetingname
=
request
.
getParameter
(
"meetingname"
);
boolean
isModerator
=
Boolean
.
parseBoolean
(
request
.
getParameter
(
"isModerator"
));
String
joinURL
=
getJoinURLHTML5
(
username
,
meetingname
,
"false"
,
null
,
null
,
null
);
String
joinURL
=
getJoinURLHTML5
(
username
,
meetingname
,
"false"
,
null
,
null
,
null
,
isModerator
);
Document
doc
=
null
;
doc
=
parseXml
(
getURL
(
joinURL
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment