Merge pull request #4128 from ritzalam/recording-status-change

- receive recording status messages from server
This commit is contained in:
Richard Alam 2017-07-22 09:58:00 -04:00 committed by GitHub
commit e35f2fd1d3

View File

@ -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 {