- handle stream stopped event by checking if stream is present

This commit is contained in:
Richard Alam 2018-05-11 08:47:50 -07:00
parent 7701b70842
commit 9d4926eab8

View File

@ -756,9 +756,11 @@ package org.bigbluebutton.modules.users.services
logData.streamId = stream;
LOGGER.info(JSON.stringify(logData));
LiveMeeting.inst().webcams.remove(stream);
var mediaStream: MediaStream = LiveMeeting.inst().webcams.remove(stream);
sendStreamStoppedEvent(userId, stream);
if (mediaStream != null) {
sendStreamStoppedEvent(mediaStream.userId, stream);
}
}
private function sendStreamStoppedEvent(userId: String, streamId: String):void{