kick off recording processing when meeting is ended
This commit is contained in:
parent
44236df171
commit
8bdf8e28e9
@ -299,14 +299,14 @@ public class MeetingService implements MessageListener {
|
||||
return map;
|
||||
}
|
||||
|
||||
private int getDurationRecording(String playbackDuration, String end, String start) {
|
||||
private int getDurationRecording(String playbackDuration, String end, String start) {
|
||||
int duration;
|
||||
try {
|
||||
if (!playbackDuration.equals("")) {
|
||||
duration = (int)Math.ceil((Long.parseLong(playbackDuration))/60000.0);
|
||||
} else {
|
||||
duration = (int)Math.ceil((Long.parseLong(end) - Long.parseLong(start))/60000.0);
|
||||
}
|
||||
if (!playbackDuration.equals("")) {
|
||||
duration = (int)Math.ceil((Long.parseLong(playbackDuration))/60000.0);
|
||||
} else {
|
||||
duration = (int)Math.ceil((Long.parseLong(end) - Long.parseLong(start))/60000.0);
|
||||
}
|
||||
} catch(Exception e){
|
||||
log.debug(e.getMessage());
|
||||
duration = 0;
|
||||
@ -367,7 +367,10 @@ public class MeetingService implements MessageListener {
|
||||
if (m != null) {
|
||||
m.setForciblyEnded(true);
|
||||
if (removeMeetingWhenEnded) {
|
||||
processMeetingForRemoval(m);
|
||||
processRecording(m.getInternalId());
|
||||
destroyMeeting(m.getInternalId());
|
||||
meetings.remove(m.getInternalId());
|
||||
removeUserSessions(m.getInternalId());
|
||||
}
|
||||
} else {
|
||||
log.debug("endMeeting - meeting doesn't exist: " + message.meetingId);
|
||||
|
Loading…
Reference in New Issue
Block a user