From c9371ccb85d0a4ff3c09b9ef5485070e937d8ab9 Mon Sep 17 00:00:00 2001
From: Anton Georgiev <anto.georgiev@gmail.com>
Date: Wed, 9 May 2018 20:29:43 +0000
Subject: [PATCH] adjusted html5 video chat to be recordable

---
 bbb-api-demo/src/main/webapp/bbb_api.jsp        |  5 -----
 bbb-api-demo/src/main/webapp/demoHTML5Video.jsp | 12 +++++-------
 2 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/bbb-api-demo/src/main/webapp/bbb_api.jsp b/bbb-api-demo/src/main/webapp/bbb_api.jsp
index 6c915393f3..1944853288 100755
--- a/bbb-api-demo/src/main/webapp/bbb_api.jsp
+++ b/bbb-api-demo/src/main/webapp/bbb_api.jsp
@@ -169,11 +169,6 @@ public String getJoinMeetingURL(String username, String meetingID, String passwo
 public String getJoinURL(String username, String meetingID, String record, String welcome, Map<String, String> metadata, String xml) {
     String isHTML5Client = "false";
     String isModerator = "true";
-    //TODO - can I avoid having to pass these?
-
-
-
-
 
     return getJoinURLExtended(username, meetingID, record, welcome, metadata, xml, isHTML5Client, isModerator);
 }
diff --git a/bbb-api-demo/src/main/webapp/demoHTML5Video.jsp b/bbb-api-demo/src/main/webapp/demoHTML5Video.jsp
index e72be97275..ba690bb38c 100644
--- a/bbb-api-demo/src/main/webapp/demoHTML5Video.jsp
+++ b/bbb-api-demo/src/main/webapp/demoHTML5Video.jsp
@@ -71,13 +71,7 @@ if (request.getParameterMap().isEmpty()) {
 
 <%
 } else if (request.getParameter("action").equals("create")) {
-
-	//
-	// Got an action=create
-	//
-
 	String username = request.getParameter("username");
-
 	String meetingname = "Video Chat Meeting";
 
 	//metadata
@@ -87,7 +81,11 @@ if (request.getParameterMap().isEmpty()) {
 	metadata.put("html5autosharewebcam", "true");
 	metadata.put("html5hidepresentation", "true");
 
-	String joinURL = getJoinURLExtended(username, meetingname, "true", null, metadata, null, "true");
+	Boolean isModerator = new Boolean(true);
+	Boolean isHTML5 = new Boolean(true);
+	Boolean isRecorded = new Boolean(true);
+
+	String joinURL = getJoinURLExtended(username, meetingname, isRecorded.toString(), null, metadata, null, isHTML5.toString(), isModerator.toString());
 
 	if (joinURL.startsWith("http://") || joinURL.startsWith("https://")) {
 %>
-- 
GitLab