- send only recording timer updates to clients when the meeting is recording

This commit is contained in:
Richard Alam 2018-07-20 08:20:41 -07:00
parent bfe9075e55
commit b2c2705223

View File

@ -27,15 +27,17 @@ trait SendRecordingTimerInternalMsgHdlr {
var newDuration = 0L var newDuration = 0L
if (MeetingStatus2x.isRecording(liveMeeting.status)) { if (MeetingStatus2x.isRecording(liveMeeting.status)) {
newDuration = TimeUtil.timeNowInMs() newDuration = TimeUtil.timeNowInMs()
val tracker = state.recordingTracker.udpateCurrentDuration(newDuration)
val recordingTime = TimeUtil.millisToSeconds(tracker.recordingDuration())
val event = buildUpdateRecordingTimerEvtMsg(liveMeeting.props.meetingProp.intId, recordingTime)
outGW.send(event)
state.update(tracker)
} else {
state
} }
val tracker = state.recordingTracker.udpateCurrentDuration(newDuration)
val recordingTime = TimeUtil.millisToSeconds(tracker.recordingDuration())
val event = buildUpdateRecordingTimerEvtMsg(liveMeeting.props.meetingProp.intId, recordingTime)
outGW.send(event)
state.update(tracker)
} }
} }