From 544943b16bce6e7ea148ab5364ad804df7b23b25 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Sat, 22 Jul 2017 06:56:37 -0700 Subject: [PATCH] - receive recording status messages from server --- .../modules/users/services/MessageReceiver.as | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as b/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as index 01504a2a35..c79b00bd66 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as @@ -130,10 +130,10 @@ package org.bigbluebutton.modules.users.services case "UserEmojiChangedEvtMsg": handleEmojiStatusHand(message); break; - case "getRecordingStatusReply": + case "GetRecordingStatusRespMsg": handleGetRecordingStatusReply(message); break; - case "recordingStatusChanged": + case "RecordingStatusChangedEvtMsg": handleRecordingStatusChanged(message); break; case "user_listening_only": @@ -528,13 +528,16 @@ package org.bigbluebutton.modules.users.services } private function handleGetRecordingStatusReply(msg: Object):void { - var map:Object = JSON.parse(msg.msg); - sendRecordingStatusUpdate(map.recording); + var body:Object = msg.body as Object; + var recording: Boolean = body.recording as Boolean; + + sendRecordingStatusUpdate(recording); } private function handleRecordingStatusChanged(msg: Object):void { - var map:Object = JSON.parse(msg.msg); - sendRecordingStatusUpdate(map.recording); + var body:Object = msg.body as Object; + var recording: Boolean = body.recording as Boolean; + sendRecordingStatusUpdate(recording); } private function handleUserListeningOnly(msg: Object):void {