mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: openvidu.recording.autostop-timeout added to GET /config
parent
813893798b
commit
cde8290039
|
@ -244,13 +244,13 @@ public class OpenViduServer implements JsonRpcConfigurer {
|
|||
} else if (e.getCodeValue() == Code.RECORDING_PATH_NOT_VALID.getValue()) {
|
||||
finalErrorMessage = "Error initializing recording path \""
|
||||
+ this.openviduConfig().getOpenViduRecordingPath()
|
||||
+ "\" set with system property \"openvidu.recording.path\". Shutting down OpenVidu Server";
|
||||
+ "\" set with system property \"openvidu.recording.path\"";
|
||||
} else if (e.getCodeValue() == Code.RECORDING_FILE_EMPTY_ERROR.getValue()) {
|
||||
finalErrorMessage = "Error initializing recording custom layouts path \""
|
||||
+ this.openviduConfig().getOpenviduRecordingCustomLayout()
|
||||
+ "\" set with system property \"openvidu.recording.custom-layout\". Shutting down OpenVidu Server";
|
||||
+ "\" set with system property \"openvidu.recording.custom-layout\"";
|
||||
}
|
||||
log.error(finalErrorMessage);
|
||||
log.error(finalErrorMessage + ". Shutting down OpenVidu Server");
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,10 +34,8 @@ public class CustomLayoutsHttpHandler extends WebMvcConfigurerAdapter {
|
|||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
|
||||
String customLayoutsPath = openviduConfig.getOpenviduRecordingCustomLayout();
|
||||
customLayoutsPath = customLayoutsPath.endsWith("/") ? customLayoutsPath : customLayoutsPath + "/";
|
||||
|
||||
openviduConfig.setOpenViduRecordingCustomLayout(customLayoutsPath);
|
||||
|
||||
registry.addResourceHandler("/layouts/custom/**").addResourceLocations("file:" + customLayoutsPath);
|
||||
|
|
|
@ -86,6 +86,7 @@ public class ConfigRestController {
|
|||
json.addProperty("openviduRecordingPublicAccess", openviduConfig.getOpenViduRecordingPublicAccess());
|
||||
json.addProperty("openviduRecordingNotification", openviduConfig.getOpenViduRecordingNotification());
|
||||
json.addProperty("openviduRecordingCustomLayout", openviduConfig.getOpenviduRecordingCustomLayout());
|
||||
json.addProperty("openviduRecordingAutostopTimeout", openviduConfig.getOpenviduRecordingAutostopTimeout());
|
||||
}
|
||||
|
||||
HttpHeaders responseHeaders = new HttpHeaders();
|
||||
|
|
Loading…
Reference in New Issue