[+] 架构优化:Moon=MCU+SFU

This commit is contained in:
acgist
2022-12-02 22:22:49 +08:00
parent 4a0e1ebbc7
commit b1ed244d4d
17 changed files with 132 additions and 95 deletions

View File

@@ -17,8 +17,7 @@
<description>WebRTC模块</description>
<modules>
<module>taoyao-webrtc-sfu</module>
<module>taoyao-webrtc-mcu</module>
<module>taoyao-webrtc-moon</module>
<module>taoyao-webrtc-mesh</module>
<module>taoyao-webrtc-kurento</module>
</modules>

View File

@@ -14,7 +14,7 @@
<packaging>jar</packaging>
<name>taoyao-webrtc-mesh</name>
<description>WebRTC MESH架构实现</description>
<description>WebRTC Mesh架构实现</description>
<dependencies></dependencies>

View File

@@ -10,11 +10,11 @@
<version>1.0.0</version>
</parent>
<artifactId>taoyao-webrtc-mcu</artifactId>
<artifactId>taoyao-webrtc-moon</artifactId>
<packaging>jar</packaging>
<name>taoyao-webrtc-mcu</name>
<description>WebRTC MCU架构实现</description>
<name>taoyao-webrtc-moon</name>
<description>WebRTC Moon架构实现</description>
<dependencies>
<dependency>

View File

@@ -1,15 +1,15 @@
package com.acgist.taoyao.webrtc.mcu.config;
package com.acgist.taoyao.webrtc.moon.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
/**
* MCU自动配置
* MOON自动配置
*
* @author acgist
*/
@Configuration
@ConditionalOnProperty(prefix = "taoyao.webrtc", name = "framework", havingValue = "MCU", matchIfMissing = false)
public class McuAutoConfiguration {
@ConditionalOnProperty(prefix = "taoyao.webrtc", name = "framework", havingValue = "MOON", matchIfMissing = false)
public class MoonAutoConfiguration {
}

View File

@@ -0,0 +1 @@
com.acgist.taoyao.webrtc.moon.config.MoonAutoConfiguration

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>taoyao-webrtc-sfu</artifactId>
<packaging>jar</packaging>
<name>taoyao-webrtc-sfu</name>
<description>WebRTC SFU架构实现</description>
<dependencies>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc-kurento</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -1,15 +0,0 @@
package com.acgist.taoyao.webrtc.sfu.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
/**
* SFU自动配置
*
* @author acgist
*/
@Configuration
@ConditionalOnProperty(prefix = "taoyao.webrtc", name = "framework", havingValue = "SFU", matchIfMissing = true)
public class SfuAutoConfiguration {
}