- check if guest user waiting for mod approval is joining via html5

This commit is contained in:
Richard Alam 2019-03-28 11:24:02 -07:00
parent 2820af6288
commit 0d217447eb
2 changed files with 10 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public class UserSession {
public String avatarURL;
public String configXML;
public String guestStatus = GuestPolicy.ALLOW;
public Boolean joinViaHtml5 = false;
private AtomicInteger connections = new AtomicInteger(0);

View File

@ -419,6 +419,7 @@ class ApiController {
us.guestStatus = guestStatusVal
us.logoutUrl = meeting.getLogoutUrl()
us.configXML = configxml;
us.joinViaHtml5 = joinViaHtml5
if (!StringUtils.isEmpty(params.defaultLayout)) {
us.defaultLayout = params.defaultLayout;
@ -1297,9 +1298,16 @@ class ApiController {
String msgKey = "guestAllowed"
String msgValue = "Guest allowed to join meeting."
// Check if the user should join using html5
if (us.joinViaHtml5) {
clientURL = paramsProcessorUtil.getHTML5ClientUrl();
}
String destUrl = clientURL + "?sessionToken=" + sessionToken
log.debug("destUrl = " + destUrl)
if (guestWaitStatus.equals(GuestPolicy.WAIT)) {
clientURL = paramsProcessorUtil.getDefaultGuestWaitURL();
destUrl = clientURL + "?sessionToken=" + sessionToken