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;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getDurationRecording(String playbackDuration, String end, String start) {
|
private int getDurationRecording(String playbackDuration, String end, String start) {
|
||||||
int duration;
|
int duration;
|
||||||
try {
|
try {
|
||||||
if (!playbackDuration.equals("")) {
|
if (!playbackDuration.equals("")) {
|
||||||
duration = (int)Math.ceil((Long.parseLong(playbackDuration))/60000.0);
|
duration = (int)Math.ceil((Long.parseLong(playbackDuration))/60000.0);
|
||||||
} else {
|
} else {
|
||||||
duration = (int)Math.ceil((Long.parseLong(end) - Long.parseLong(start))/60000.0);
|
duration = (int)Math.ceil((Long.parseLong(end) - Long.parseLong(start))/60000.0);
|
||||||
}
|
}
|
||||||
} catch(Exception e){
|
} catch(Exception e){
|
||||||
log.debug(e.getMessage());
|
log.debug(e.getMessage());
|
||||||
duration = 0;
|
duration = 0;
|
||||||
@ -367,7 +367,10 @@ public class MeetingService implements MessageListener {
|
|||||||
if (m != null) {
|
if (m != null) {
|
||||||
m.setForciblyEnded(true);
|
m.setForciblyEnded(true);
|
||||||
if (removeMeetingWhenEnded) {
|
if (removeMeetingWhenEnded) {
|
||||||
processMeetingForRemoval(m);
|
processRecording(m.getInternalId());
|
||||||
|
destroyMeeting(m.getInternalId());
|
||||||
|
meetings.remove(m.getInternalId());
|
||||||
|
removeUserSessions(m.getInternalId());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.debug("endMeeting - meeting doesn't exist: " + message.meetingId);
|
log.debug("endMeeting - meeting doesn't exist: " + message.meetingId);
|
||||||
|
Loading…
Reference in New Issue
Block a user