From 4d16c73bde21bb302ab721e312aaf8a80cee229d Mon Sep 17 00:00:00 2001 From: Chad Pilkey Date: Wed, 2 Aug 2017 17:26:02 -0400 Subject: [PATCH] record extra SharePresentationEvent when conversion complete and current --- .../endpoint/redis/RedisRecorderActor.scala | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 c8980b42d5..2598c05058 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 @@ -120,6 +120,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) { @@ -152,12 +156,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 = {