[+] 精简

This commit is contained in:
acgist
2022-11-28 22:01:50 +08:00
parent 9667f9cd08
commit fe7e48ec0e
15 changed files with 21 additions and 100 deletions

View File

@@ -77,8 +77,8 @@ public class BootAutoConfiguration {
@Value("${spring.application.name:taoyao}")
private String name;
@Value("${taoyao.webrtc.model:SFU}")
private String model;
@Value("${taoyao.webrtc.framework:SFU}")
private String framework;
@Autowired
private ApplicationContext context;
@@ -162,7 +162,7 @@ public class BootAutoConfiguration {
this.context.getBeansOfType(TaskScheduler.class).forEach((k, v) -> {
log.info("系统定时任务线程池:{}-{}", k, v);
});
log.info("WebRTC架构{}", this.model);
log.info("WebRTC架构{}", this.framework);
this.registerException();
}

View File

@@ -22,7 +22,7 @@ public class WebrtcProperties {
*
* @author acgist
*/
public enum Model {
public enum Framework {
/**
* SFU架构
@@ -39,33 +39,10 @@ public class WebrtcProperties {
}
/**
* 基础框架
*
* @author acgist
*/
public enum Framework {
/**
* jitsi
*/
JITSI,
/**
* kurento
*/
KURENTO;
}
/**
* 模型
*/
@Schema(title = "架构模型", description = "WebRTC架构模型")
private Model model;
/**
* 框架
*/
@Schema(title = "基础框架", description = "WebRTC基础框架")
private Framework framework;
/**
* stun服务器