diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala index 924a3c0d81..fc91a90a92 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/endpoint/redis/RedisRecorderActor.scala @@ -122,6 +122,10 @@ class RedisRecorderActor(val system: ActorSystem) ev.setOriginalFilename(msg.body.presentation.name) record(msg.header.meetingId, ev.toMap) + + if (msg.body.presentation.current) { + recordSharePresentationEvent(msg.header.meetingId, msg.body.presentation.id) + } } private def handleSetCurrentPageEvtMsg(msg: SetCurrentPageEvtMsg) { @@ -154,12 +158,16 @@ class RedisRecorderActor(val system: ActorSystem) } private def handleSetCurrentPresentationEvtMsg(msg: SetCurrentPresentationEvtMsg) { + recordSharePresentationEvent(msg.header.meetingId, msg.body.presentationId) + } + + private def recordSharePresentationEvent(meetingId: String, presentationId: String) { val ev = new SharePresentationRecordEvent() - ev.setMeetingId(msg.header.meetingId) - ev.setPresentationName(msg.body.presentationId) + ev.setMeetingId(meetingId) + ev.setPresentationName(presentationId) ev.setShare(true) - record(msg.header.meetingId, ev.toMap) + record(meetingId, ev.toMap) } private def getPageNum(id: String): Integer = {