worked on dispatching a request for whiteboard shapes and waiting for reply

This commit is contained in:
Anton Georgiev 2014-06-04 15:14:23 +00:00
parent 3b9e50f2d0
commit d25ac63362
4 changed files with 19 additions and 4 deletions

View File

@ -104,7 +104,6 @@ class MeetingActor(val meetingID: String, meetingName: String, val recorded: Boo
case msg: ShowPollResult => handleShowPollResult(msg)
case msg: SendWhiteboardAnnotationRequest => handleSendWhiteboardAnnotationRequest(msg)
case msg: GetWhiteboardShapesRequest => handleGetWhiteboardShapesRequest(msg)
case msg: GetWhiteboardShapesNoIdRequest => handleGetWhiteboardShapesNoIdRequest(msg)
case msg: ClearWhiteboardRequest => handleClearWhiteboardRequest(msg)
case msg: UndoWhiteboardRequest => handleUndoWhiteboardRequest(msg)
case msg: EnableWhiteboardRequest => handleEnableWhiteboardRequest(msg)

View File

@ -79,9 +79,6 @@ trait UsersApp {
//send the presentation
this ! (new GetPresentationInfo(meetingID, msg.userId, replyTo))
//send the whiteboard
//this ! (new GetWhiteboardShapesNoIdRequest(meetingID, msg.userId, replyTo))
}
case None => outGW.send(new ValidateAuthTokenReply(meetingID, msg.userId, msg.token, false, msg.correlationId))
}

View File

@ -33,6 +33,7 @@ config.redis.channels.toBBBApps.pattern = "bigbluebutton:to-bbb-apps:*"
config.redis.channels.toBBBApps.chat = "bigbluebutton:to-bbb-apps:chat"
config.redis.channels.toBBBApps.meeting = "bigbluebutton:to-bbb-apps:meeting"
config.redis.channels.toBBBApps.users = "bigbluebutton:to-bbb-apps:users"
config.redis.channels.toBBBApps.whiteboard = "bigbluebutton:to-bbb-apps:whiteboard"
config.redis.internalChannels = {}
config.redis.internalChannels.receive = "html5-receive"
config.redis.internalChannels.reply = "html5-reply"

View File

@ -97,6 +97,7 @@ module.exports = class RedisPubSub
if message.header?.name is 'get_presentation_info_reply'
#filter for the current=true page on the server-side
currentPage = null
numCurrentPage = null
presentations = message.payload?.presentations
for presentation in presentations
@ -105,6 +106,23 @@ module.exports = class RedisPubSub
for page in pages
if page.current is true
currentPage = page
numCurrentPage = page.num
console.log "\n\n\n\n the message is: " + JSON.stringify message
console.log "\n" + message.payload?.presentations[0]?.id + "/" + numCurrentPage + "\n\n"
#request the whiteboard information
requestMessage = {
"payload": {
"meeting_id": message.payload?.meeting_id
"requester_id": message.payload?.requester_id
"whiteboard_id": message.payload?.presentations[0]?.id + "/" + numCurrentPage #not sure if always [0]
},
"header": {
"timestamp": new Date().getTime()
"name": "get_whiteboard_shapes_request"
}
}
@publishing(config.redis.channels.toBBBApps.whiteboard, requestMessage)
#strip off excess data, leaving only the current slide information
message.payload.currentPage = currentPage