- send only recording timer updates to clients when the meeting is recording
This commit is contained in:
parent
bfe9075e55
commit
b2c2705223
18
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SendRecordingTimerInternalMsgHdlr.scala
Normal file → Executable file
18
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/SendRecordingTimerInternalMsgHdlr.scala
Normal file → Executable file
@ -27,15 +27,17 @@ trait SendRecordingTimerInternalMsgHdlr {
|
||||
var newDuration = 0L
|
||||
if (MeetingStatus2x.isRecording(liveMeeting.status)) {
|
||||
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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user