Merge pull request #4195 from capilkey/record-extra-share-presentation
Record extra SharePresentationEvent when conversion complete and current
This commit is contained in:
commit
34fa2f22b2
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user