Skip to content
Snippets Groups Projects
Commit b2c27052 authored by Richard Alam's avatar Richard Alam
Browse files

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

parent bfe9075e
No related branches found
No related tags found
No related merge requests found
......@@ -27,15 +27,17 @@ trait SendRecordingTimerInternalMsgHdlr {
var newDuration = 0L
if (MeetingStatus2x.isRecording(liveMeeting.status)) {
newDuration = TimeUtil.timeNowInMs()
}
val tracker = state.recordingTracker.udpateCurrentDuration(newDuration)
val tracker = state.recordingTracker.udpateCurrentDuration(newDuration)
val recordingTime = TimeUtil.millisToSeconds(tracker.recordingDuration())
val recordingTime = TimeUtil.millisToSeconds(tracker.recordingDuration())
val event = buildUpdateRecordingTimerEvtMsg(liveMeeting.props.meetingProp.intId, recordingTime)
outGW.send(event)
val event = buildUpdateRecordingTimerEvtMsg(liveMeeting.props.meetingProp.intId, recordingTime)
outGW.send(event)
state.update(tracker)
} else {
state
}
state.update(tracker)
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment