diff --git a/.gitmodules b/.gitmodules index c7786e4..826c608 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,12 @@ -[submodule "taoyao-media-server/mediasoup"] - path = taoyao-media-server/mediasoup +[submodule "taoyao-client-media/mediasoup"] + path = taoyao-client-media/mediasoup url = https://gitee.com/acgist/mediasoup.git branch = taoyao [submodule "taoyao-client-web/mediasoup-client"] path = taoyao-client-web/mediasoup-client url = https://gitee.com/acgist/mediasoup-client.git branch = taoyao -[submodule "taoyao-client-android/libmediasoupclient"] - path = taoyao-client-android/libmediasoupclient +[submodule "taoyao-client-harmony/libmediasoupclient"] + path = taoyao-client-harmony/libmediasoupclient url = https://gitee.com/acgist/libmediasoupclient.git branch = taoyao \ No newline at end of file diff --git a/README.md b/README.md index ceb9535..7d358e5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 桃夭 -桃夭是套基于`Mediasoup`开发的`WebRTC`音视频信令服务 +桃夭是套基于`Mediasoup`开发的`WebRTC`音视频信令服务,可以扩展其他智能终端接入。
@@ -20,10 +20,10 @@
|模块|名称|描述|
|:--|:--|:--|
-|taoyao-client-web|终端示例|Web终端示例|
-|taoyao-client-android|终端示例|安卓终端示例|
-|taoyao-media-server|媒体服务|媒体服务|
-|taoyao-signal-server|信令服务|信令服务|
+|taoyao-client-web|Web终端|提供前端控制页面|
+|taoyao-client-media|媒体服务|提供音视频接入服务|
+|taoyao-client-harmony|鸿蒙终端|鸿蒙智能终端接入|
+|taoyao-signal-server|信令服务|终端信令控制|
> 注意:只有Web实现完成信令控制
diff --git a/docs/Deploy.md b/docs/Deploy.md
index 107f849..2aa9653 100644
--- a/docs/Deploy.md
+++ b/docs/Deploy.md
@@ -239,7 +239,7 @@ trusted-host = mirrors.aliyun.com
pip config list
# 编译代码
-cd /data/taoyao/taoyao-media-server
+cd /data/taoyao/taoyao-client-media
git submodule update --remote
cd modulesup
git checkout taoyao
@@ -247,7 +247,7 @@ cd ..
npm install
# 配置服务
-pm2 start npm --name "taoyao-media-server" -- run dev | release
+pm2 start npm --name "taoyao-client-media" -- run dev | prd
pm2 save
# 配置ecosystem
@@ -256,7 +256,7 @@ pm2 start | reload ecosystem.config.json
pm2 save
# 管理服务
-pm2 start | stop | restart taoyao-media-server
+pm2 start | stop | restart taoyao-client-media
```
### Mediasoup单独编译
@@ -266,7 +266,7 @@ pm2 start | stop | restart taoyao-media-server
```
# 编译代码
# make -C worker
-cd /data/taoyao/taoyao-media-server/mediasoup/worker
+cd /data/taoyao/taoyao-client-media/mediasoup/worker
make
# 清理结果
@@ -285,7 +285,7 @@ make clean
# 编译代码
cd /data/taoyao/taoyao-signal-server
mvn clean package -D skipTests
-#mvn clean package -D skipTests -P release
+#mvn clean package -D skipTests -P prd
# 拷贝脚本
cp taoyao-server/target/taoyao-server-1.0.0/bin/deploy.sh ./
diff --git a/taoyao-client-android/libmediasoupclient b/taoyao-client-harmony/libmediasoupclient
similarity index 100%
rename from taoyao-client-android/libmediasoupclient
rename to taoyao-client-harmony/libmediasoupclient
diff --git a/taoyao-media-server/README.md b/taoyao-client-media/README.md
similarity index 100%
rename from taoyao-media-server/README.md
rename to taoyao-client-media/README.md
diff --git a/taoyao-media-server/ecosystem.config.cluster.json b/taoyao-client-media/ecosystem.config.cluster.json
similarity index 87%
rename from taoyao-media-server/ecosystem.config.cluster.json
rename to taoyao-client-media/ecosystem.config.cluster.json
index ebf2818..2895b1d 100644
--- a/taoyao-media-server/ecosystem.config.cluster.json
+++ b/taoyao-client-media/ecosystem.config.cluster.json
@@ -2,7 +2,7 @@
"apps": [
{
"cwd": "./",
- "name": "taoyao-media-server",
+ "name": "taoyao-client-media",
"script": "src/Server.js",
"instances": 2,
"exec_mode": "cluster",
diff --git a/taoyao-media-server/ecosystem.config.json b/taoyao-client-media/ecosystem.config.json
similarity index 84%
rename from taoyao-media-server/ecosystem.config.json
rename to taoyao-client-media/ecosystem.config.json
index 7c82d86..c9f3fc3 100644
--- a/taoyao-media-server/ecosystem.config.json
+++ b/taoyao-client-media/ecosystem.config.json
@@ -2,7 +2,7 @@
"apps": [
{
"cwd": "./",
- "name": "taoyao-media-server",
+ "name": "taoyao-client-media",
"script": "src/Server.js",
"out_file": "./logs/out.log",
"error_file": "./logs/error.log",
diff --git a/taoyao-client-media/mediasoup b/taoyao-client-media/mediasoup
new file mode 160000
index 0000000..f02edc6
--- /dev/null
+++ b/taoyao-client-media/mediasoup
@@ -0,0 +1 @@
+Subproject commit f02edc62e764b061917cbd215528db62e27fc9bd
diff --git a/taoyao-media-server/package.json b/taoyao-client-media/package.json
similarity index 67%
rename from taoyao-media-server/package.json
rename to taoyao-client-media/package.json
index 3d052ef..6a6159a 100644
--- a/taoyao-media-server/package.json
+++ b/taoyao-client-media/package.json
@@ -1,12 +1,12 @@
{
- "name": "taoyao-media-server",
+ "name": "taoyao-client-media",
"author": "acgist",
"version": "1.0.0",
"private": true,
- "description": "taoyao media server",
+ "description": "taoyao client media",
"scripts": {
"dev": "node src/Server.js",
- "release": "node src/Server.js"
+ "prd": "node src/Server.js"
},
"dependencies": {
"ws": "^8.12.0",
diff --git a/taoyao-media-server/src/Config.js b/taoyao-client-media/src/Config.js
similarity index 99%
rename from taoyao-media-server/src/Config.js
rename to taoyao-client-media/src/Config.js
index fea3c71..6b5bfb2 100644
--- a/taoyao-media-server/src/Config.js
+++ b/taoyao-client-media/src/Config.js
@@ -5,7 +5,7 @@ const os = require("os");
*/
module.exports = {
// 服务名称
- name: "taoyao-media-server",
+ name: "taoyao-client-media",
// 服务版本
version: "1.0.0",
// 欢迎页面
diff --git a/taoyao-media-server/src/Server.js b/taoyao-client-media/src/Server.js
similarity index 100%
rename from taoyao-media-server/src/Server.js
rename to taoyao-client-media/src/Server.js
diff --git a/taoyao-media-server/src/Signal.js b/taoyao-client-media/src/Signal.js
similarity index 100%
rename from taoyao-media-server/src/Signal.js
rename to taoyao-client-media/src/Signal.js
diff --git a/taoyao-media-server/src/certs/privateKey.pem b/taoyao-client-media/src/certs/privateKey.pem
similarity index 100%
rename from taoyao-media-server/src/certs/privateKey.pem
rename to taoyao-client-media/src/certs/privateKey.pem
diff --git a/taoyao-media-server/src/certs/publicKey.pem b/taoyao-client-media/src/certs/publicKey.pem
similarity index 100%
rename from taoyao-media-server/src/certs/publicKey.pem
rename to taoyao-client-media/src/certs/publicKey.pem
diff --git a/taoyao-media-server/src/index.html b/taoyao-client-media/src/index.html
similarity index 78%
rename from taoyao-media-server/src/index.html
rename to taoyao-client-media/src/index.html
index bcb89ca..0fbe2cb 100644
--- a/taoyao-media-server/src/index.html
+++ b/taoyao-client-media/src/index.html
@@ -9,7 +9,7 @@