renamed noRedirect* to redirectToHtml5*
This commit is contained in:
parent
a77ee38741
commit
eb7a49f142
@ -17,7 +17,7 @@ object BreakoutRoom {
|
|||||||
//| pter=com.google.gson.Gso
|
//| pter=com.google.gson.Gso
|
||||||
//| Output exceeds cutoff limit.
|
//| Output exceeds cutoff limit.
|
||||||
|
|
||||||
val string = "{\"payload\":{\"redirectJoinUrl\":\"alink\",\"breakoutMeetingId\":\"4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031\",\"noRedirectJoinUrl\":\"http://bbb.riadvice.com/bigbluebutton/api/join?fullName\u003dOpera\u0026isBreakout\u003dtrue\u0026meetingID\u003d4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031\u0026password\u003dmp\u0026redirect\u003dfalse\u0026userID\u003d6pt0vfeaxdze_1-1\u0026checksum\u003d51c4a1398b88170c25f1a71521bca604e784ab23\",\"parentMeetingId\":\"183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1479728593178\",\"userId\":\"6pt0vfeaxdze_1\"},\"header\":{\"name\":\"BreakoutRoomJoinURL\",\"version\":\"0.0.1\",\"current_time\":1479728673586,\"timestamp\":8549632}}"
|
val string = "{\"payload\":{\"redirectJoinUrl\":\"alink\",\"breakoutMeetingId\":\"4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031\",\"redirectToHtml5JoinUrl\":\"http://bbb.riadvice.com/bigbluebutton/api/join?fullName\u003dOpera\u0026isBreakout\u003dtrue\u0026meetingID\u003d4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031\u0026password\u003dmp\u0026redirect\u003dfalse\u0026userID\u003d6pt0vfeaxdze_1-1\u0026checksum\u003d51c4a1398b88170c25f1a71521bca604e784ab23\",\"parentMeetingId\":\"183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1479728593178\",\"userId\":\"6pt0vfeaxdze_1\"},\"header\":{\"name\":\"BreakoutRoomJoinURL\",\"version\":\"0.0.1\",\"current_time\":1479728673586,\"timestamp\":8549632}}"
|
||||||
//> string : String = {"payload":{"redirectJoinUrl":"alink","breakoutMeetingId"
|
//> string : String = {"payload":{"redirectJoinUrl":"alink","breakoutMeetingId"
|
||||||
//| :"4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031","noRedirectJoinUrl
|
//| :"4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031","noRedirectJoinUrl
|
||||||
//| ":"http://bbb.riadvice.com/bigbluebutton/api/join?fullName=Opera&isBreakout=
|
//| ":"http://bbb.riadvice.com/bigbluebutton/api/join?fullName=Opera&isBreakout=
|
||||||
@ -35,5 +35,5 @@ object BreakoutRoom {
|
|||||||
println(brjum.payload.parentMeetingId) //> 183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1479728593178
|
println(brjum.payload.parentMeetingId) //> 183f0bf3a0982a127bdb8161e0c44eb696b3e75c-1479728593178
|
||||||
println(brjum.payload.breakoutMeetingId) //> 4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031
|
println(brjum.payload.breakoutMeetingId) //> 4455e780b6f62cd5fcf09367aef62d9bc5108375-1479728671031
|
||||||
println(brjum.payload.redirectJoinURL) //> null
|
println(brjum.payload.redirectJoinURL) //> null
|
||||||
println(brjum.payload.noRedirectJoinURL) //> null
|
println(brjum.payload.redirectToHtml5JoinURL) //> null
|
||||||
}
|
}
|
@ -17,37 +17,37 @@ trait BreakoutHdlrHelpers extends SystemConfiguration {
|
|||||||
for {
|
for {
|
||||||
user <- Users2x.findWithIntId(liveMeeting.users2x, userId)
|
user <- Users2x.findWithIntId(liveMeeting.users2x, userId)
|
||||||
apiCall = "join"
|
apiCall = "join"
|
||||||
(redirectParams, noRedirectParams) = BreakoutRoomsUtil.joinParams(user.name, userId + "-" + roomSequence, true,
|
(redirectParams, redirectToHtml5Params) = BreakoutRoomsUtil.joinParams(user.name, userId + "-" + roomSequence, true,
|
||||||
externalMeetingId, liveMeeting.props.password.moderatorPass)
|
externalMeetingId, liveMeeting.props.password.moderatorPass)
|
||||||
// We generate a first url with redirect -> true
|
// We generate a first url with redirect -> true
|
||||||
redirectBaseString = BreakoutRoomsUtil.createBaseString(redirectParams)
|
redirectBaseString = BreakoutRoomsUtil.createBaseString(redirectParams)
|
||||||
redirectJoinURL = BreakoutRoomsUtil.createJoinURL(bbbWebAPI, apiCall, redirectBaseString,
|
redirectJoinURL = BreakoutRoomsUtil.createJoinURL(bbbWebAPI, apiCall, redirectBaseString,
|
||||||
BreakoutRoomsUtil.calculateChecksum(apiCall, redirectBaseString, bbbWebSharedSecret))
|
BreakoutRoomsUtil.calculateChecksum(apiCall, redirectBaseString, bbbWebSharedSecret))
|
||||||
// We generate a second url with redirect -> false
|
// We generate a second url with redirect -> true and joinViaHtml5 -> true
|
||||||
noRedirectBaseString = BreakoutRoomsUtil.createBaseString(noRedirectParams)
|
redirectToHtml5BaseString = BreakoutRoomsUtil.createBaseString(redirectToHtml5Params)
|
||||||
noRedirectJoinURL = BreakoutRoomsUtil.createJoinURL(bbbWebAPI, apiCall, noRedirectBaseString,
|
redirectToHtml5JoinURL = BreakoutRoomsUtil.createJoinURL(bbbWebAPI, apiCall, redirectToHtml5BaseString,
|
||||||
BreakoutRoomsUtil.calculateChecksum(apiCall, noRedirectBaseString, bbbWebSharedSecret))
|
BreakoutRoomsUtil.calculateChecksum(apiCall, redirectToHtml5BaseString, bbbWebSharedSecret))
|
||||||
} yield {
|
} yield {
|
||||||
sendJoinURLMsg(liveMeeting.props.meetingProp.intId, breakoutId, externalMeetingId,
|
sendJoinURLMsg(liveMeeting.props.meetingProp.intId, breakoutId, externalMeetingId,
|
||||||
userId, redirectJoinURL, noRedirectJoinURL)
|
userId, redirectJoinURL, redirectToHtml5JoinURL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def sendJoinURLMsg(meetingId: String, breakoutId: String, externalId: String,
|
def sendJoinURLMsg(meetingId: String, breakoutId: String, externalId: String,
|
||||||
userId: String, redirectJoinURL: String, noRedirectJoinURL: String): Unit = {
|
userId: String, redirectJoinURL: String, redirectToHtml5JoinURL: String): Unit = {
|
||||||
def build(meetingId: String, breakoutId: String,
|
def build(meetingId: String, breakoutId: String,
|
||||||
userId: String, redirectJoinURL: String, noRedirectJoinURL: String): BbbCommonEnvCoreMsg = {
|
userId: String, redirectJoinURL: String, redirectToHtml5JoinURL: String): BbbCommonEnvCoreMsg = {
|
||||||
val routing = Routing.addMsgToClientRouting(MessageTypes.DIRECT, meetingId, userId)
|
val routing = Routing.addMsgToClientRouting(MessageTypes.DIRECT, meetingId, userId)
|
||||||
val envelope = BbbCoreEnvelope(BreakoutRoomJoinURLEvtMsg.NAME, routing)
|
val envelope = BbbCoreEnvelope(BreakoutRoomJoinURLEvtMsg.NAME, routing)
|
||||||
val header = BbbClientMsgHeader(BreakoutRoomJoinURLEvtMsg.NAME, meetingId, userId)
|
val header = BbbClientMsgHeader(BreakoutRoomJoinURLEvtMsg.NAME, meetingId, userId)
|
||||||
|
|
||||||
val body = BreakoutRoomJoinURLEvtMsgBody(meetingId, breakoutId, externalId,
|
val body = BreakoutRoomJoinURLEvtMsgBody(meetingId, breakoutId, externalId,
|
||||||
userId, redirectJoinURL, noRedirectJoinURL)
|
userId, redirectJoinURL, redirectToHtml5JoinURL)
|
||||||
val event = BreakoutRoomJoinURLEvtMsg(header, body)
|
val event = BreakoutRoomJoinURLEvtMsg(header, body)
|
||||||
BbbCommonEnvCoreMsg(envelope, event)
|
BbbCommonEnvCoreMsg(envelope, event)
|
||||||
}
|
}
|
||||||
|
|
||||||
val msgEvent = build(meetingId, breakoutId, userId, redirectJoinURL, noRedirectJoinURL)
|
val msgEvent = build(meetingId, breakoutId, userId, redirectJoinURL, redirectToHtml5JoinURL)
|
||||||
outGW.send(msgEvent)
|
outGW.send(msgEvent)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ package org.bigbluebutton.common2.msgs
|
|||||||
object BreakoutRoomJoinURLEvtMsg { val NAME = "BreakoutRoomJoinURLEvtMsg" }
|
object BreakoutRoomJoinURLEvtMsg { val NAME = "BreakoutRoomJoinURLEvtMsg" }
|
||||||
case class BreakoutRoomJoinURLEvtMsg(header: BbbClientMsgHeader, body: BreakoutRoomJoinURLEvtMsgBody) extends BbbCoreMsg
|
case class BreakoutRoomJoinURLEvtMsg(header: BbbClientMsgHeader, body: BreakoutRoomJoinURLEvtMsgBody) extends BbbCoreMsg
|
||||||
case class BreakoutRoomJoinURLEvtMsgBody(parentId: String, breakoutId: String, externalId: String,
|
case class BreakoutRoomJoinURLEvtMsgBody(parentId: String, breakoutId: String, externalId: String,
|
||||||
userId: String, redirectJoinURL: String, noRedirectJoinURL: String)
|
userId: String, redirectJoinURL: String, redirectToHtml5JoinURL: String)
|
||||||
|
|
||||||
// Outgoing messages
|
// Outgoing messages
|
||||||
object BreakoutRoomsListEvtMsg { val NAME = "BreakoutRoomsListEvtMsg" }
|
object BreakoutRoomsListEvtMsg { val NAME = "BreakoutRoomsListEvtMsg" }
|
||||||
@ -69,7 +69,7 @@ package org.bigbluebutton.common2.msgs
|
|||||||
object RequestBreakoutJoinURLRespMsg { val NAME = "RequestBreakoutJoinURLRespMsg" }
|
object RequestBreakoutJoinURLRespMsg { val NAME = "RequestBreakoutJoinURLRespMsg" }
|
||||||
case class RequestBreakoutJoinURLRespMsg(header: BbbClientMsgHeader, body: RequestBreakoutJoinURLRespMsgBody) extends BbbCoreMsg
|
case class RequestBreakoutJoinURLRespMsg(header: BbbClientMsgHeader, body: RequestBreakoutJoinURLRespMsgBody) extends BbbCoreMsg
|
||||||
case class RequestBreakoutJoinURLRespMsgBody(parentId: String, breakoutId: String,
|
case class RequestBreakoutJoinURLRespMsgBody(parentId: String, breakoutId: String,
|
||||||
userId: String, redirectJoinURL: String, noRedirectJoinURL: String)
|
userId: String, redirectJoinURL: String, redirectToHtml5JoinURL: String)
|
||||||
|
|
||||||
|
|
||||||
object TransferUserToMeetingEvtMsg { val NAME = "TransferUserToMeetingEvtMsg" }
|
object TransferUserToMeetingEvtMsg { val NAME = "TransferUserToMeetingEvtMsg" }
|
||||||
|
@ -4,12 +4,12 @@ import Breakouts from '/imports/api/breakouts';
|
|||||||
|
|
||||||
export default function handleBreakoutJoinURL({ body }) {
|
export default function handleBreakoutJoinURL({ body }) {
|
||||||
const {
|
const {
|
||||||
noRedirectJoinURL,
|
redirectToHtml5JoinURL,
|
||||||
userId,
|
userId,
|
||||||
breakoutId,
|
breakoutId,
|
||||||
} = body;
|
} = body;
|
||||||
|
|
||||||
check(noRedirectJoinURL, String);
|
check(redirectToHtml5JoinURL, String);
|
||||||
|
|
||||||
const selector = {
|
const selector = {
|
||||||
breakoutId,
|
breakoutId,
|
||||||
@ -20,7 +20,7 @@ export default function handleBreakoutJoinURL({ body }) {
|
|||||||
users: userId,
|
users: userId,
|
||||||
},
|
},
|
||||||
$set: {
|
$set: {
|
||||||
noRedirectJoinURL,
|
redirectToHtml5JoinURL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ const getBreakouts = () => Breakouts.find().fetch();
|
|||||||
|
|
||||||
const getBreakoutJoinURL = breakout =>
|
const getBreakoutJoinURL = breakout =>
|
||||||
// experimental
|
// experimental
|
||||||
breakout.noRedirectJoinURL;
|
breakout.redirectToHtml5JoinURL;
|
||||||
export default {
|
export default {
|
||||||
getBreakouts,
|
getBreakouts,
|
||||||
getBreakoutJoinURL,
|
getBreakoutJoinURL,
|
||||||
|
Loading…
Reference in New Issue
Block a user