openvidu-server: overwritable remote recording path

pull/508/head
pabloFuente 2020-06-11 18:07:55 +02:00
parent d0c1d5346b
commit 26f6112b72
2 changed files with 5 additions and 1 deletions

View File

@ -228,6 +228,10 @@ public class OpenviduConfig {
return this.openviduRecordingPath;
}
public String getOpenViduRemoteRecordingPath() {
return getOpenViduRecordingPath();
}
public boolean getOpenViduRecordingPublicAccess() {
return this.openviduRecordingPublicAccess;
}

View File

@ -251,7 +251,7 @@ public class SingleStreamRecordingService extends RecordingService {
MediaPipeline pipeline = kurentoParticipant.getPublisher().getPipeline();
RecorderEndpoint recorder = new RecorderEndpoint.Builder(pipeline,
"file://" + this.openviduConfig.getOpenViduRecordingPath() + recordingId + "/"
"file://" + openviduConfig.getOpenViduRemoteRecordingPath() + recordingId + "/"
+ participant.getPublisherStreamId() + ".webm").withMediaProfile(profile).build();
recorder.addRecordingListener(new EventListener<RecordingEvent>() {