openvidu-server: do not set recording URL to null while uploading

pull/546/head
pabloFuente 2020-09-24 12:28:51 +02:00
parent bea77f5360
commit 407f72f0d1
1 changed files with 2 additions and 3 deletions

View File

@ -396,8 +396,8 @@ public class RecordingManager {
return; return;
} }
this.singleStreamRecordingService.startRecorderEndpointForPublisherEndpoint(session, recording.getId(), profile, this.singleStreamRecordingService.startRecorderEndpointForPublisherEndpoint(session, recording.getId(),
participant, startedCountDown); profile, participant, startedCountDown);
} else if (RecordingUtils.IS_COMPOSED(recording.getOutputMode()) && !recording.hasVideo()) { } else if (RecordingUtils.IS_COMPOSED(recording.getOutputMode()) && !recording.hasVideo()) {
// Connect this stream to existing Composite recorder // Connect this stream to existing Composite recorder
log.info("Joining PublisherEndpoint to existing Composite in session {} for new stream of participant {}", log.info("Joining PublisherEndpoint to existing Composite in session {} for new stream of participant {}",
@ -571,7 +571,6 @@ public class RecordingManager {
&& composedQuickStartRecordingService.isBeingUploaded(recording)) { && composedQuickStartRecordingService.isBeingUploaded(recording)) {
// Recording has finished but is being uploaded // Recording has finished but is being uploaded
recording.setStatus(Status.stopped); recording.setStatus(Status.stopped);
recording.setUrl(null);
} else if (Status.ready.equals(recording.getStatus()) || Status.failed.equals(recording.getStatus())) { } else if (Status.ready.equals(recording.getStatus()) || Status.failed.equals(recording.getStatus())) {
// Recording has been completely processed and must include URL // Recording has been completely processed and must include URL
recording.setUrl(recordingManagerUtils.getRecordingUrl(recording)); recording.setUrl(recordingManagerUtils.getRecordingUrl(recording));