openvidu-server: recording http handlers only set when recording enabled

pull/203/head
pabloFuente 2019-02-13 11:16:00 +01:00
parent 511aefeba8
commit 159cc99776
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,7 @@
package io.openvidu.server.recording;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@ -25,7 +26,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
import io.openvidu.server.config.OpenviduConfig;
@Configuration
public class LayoutsHttpHandler extends WebMvcConfigurerAdapter {
@ConditionalOnProperty(name = "openvidu.recording", havingValue = "true")
public class CustomLayoutsHttpHandler extends WebMvcConfigurerAdapter {
@Autowired
OpenviduConfig openviduConfig;

View File

@ -18,6 +18,7 @@
package io.openvidu.server.recording;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@ -25,6 +26,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
import io.openvidu.server.config.OpenviduConfig;
@Configuration
@ConditionalOnProperty(name = "openvidu.recording", havingValue = "true")
public class RecordingsHttpHandler extends WebMvcConfigurerAdapter {
@Autowired