[+] 终端

This commit is contained in:
acgist
2022-11-13 00:58:07 +08:00
parent 605e0fbbe7
commit 4ce21553c3
48 changed files with 1623 additions and 192 deletions

View File

@@ -1,7 +1,57 @@
# WebRTC
## 安装
## WebRTC协议栈
## 观察者
|协议|描述|
|:--|:--|
|UDP|基础协议|
|DTLS|UDP数据包传输层安全性协议|
|RTP|实时传输协议(音频视频)|
|SRTP|RTP + DTLS|
|RTCP|RTP传输控制协议监控数据传输质量并给予数据发送方反馈|
|SRTCP|RTCP + DTLS|
|SCTP|流控制传输协议(自定义的应用数据传输)|
|STUN/TURN|内网穿透协议|
订阅发布
## ICE/SIP/SDP
ICE信息的描述格式通常采用标准的SDP其全称为Session Description Protocol即会话描述协议。
SDP只是一种信息格式的描述标准不属于传输协议但是可以被其他传输协议用来交换必要的信息例如SIP、RTSP等等。
## 协议关系
```
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| HTTPS/WSS | | SCTP | SRTP/SRTCP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ICE/SIP/SDP +-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TLS | | DTLS |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| HTTP/WS | STUN/TURN | RTP/RTCP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TCP | UDP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IPv4/IPv6 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
```
## 其他协议
|协议|描述|
|:--|:--|
|HLS|基于HTTP的自适应码率流媒体传输协议|
|RTSP|可以控制媒体(点播)|
|RTMP|实时消息传送协议|
## 通道
|通道类型|协议|
|:--|:--|
|信令通道|自己实现|
|会话通道|SIP/SDP|
|媒体通道|RTP/RTCP/SRTP/SRTCP|
## WebRTC资料
[GB28181](https://blog.csdn.net/jisuanji111111/article/details/121634199)
[WebRTC协议](http://www.manoner.com/post/音视频基础/WebRTC核心组件和协议栈/)
[WebRTC开源项目](https://blog.csdn.net/ababab12345/article/details/115585378)

View File

@@ -17,10 +17,18 @@
<description>WebRTC模块</description>
<modules>
<module>taoyao-webrtc-jni</module>
<module>taoyao-webrtc-sfu</module>
<module>taoyao-webrtc-mcu</module>
<module>taoyao-webrtc-mesh</module>
<module>taoyao-webrtc-jitsi</module>
<module>taoyao-webrtc-kurento</module>
</modules>
<dependencies>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-boot</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,30 @@
<?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-jitsi</artifactId>
<packaging>jar</packaging>
<name>taoyao-webrtc-jitsi</name>
<description>WebRTC协议簇实现jitsi</description>
<dependencies>
<dependency>
<groupId>org.jitsi</groupId>
<artifactId>ice4j</artifactId>
</dependency>
<dependency>
<groupId>org.jitsi</groupId>
<artifactId>libjitsi</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -10,13 +10,17 @@
<version>1.0.0</version>
</parent>
<artifactId>taoyao-webrtc-jni</artifactId>
<artifactId>taoyao-webrtc-kurento</artifactId>
<packaging>jar</packaging>
<name>taoyao-webrtc-jni</name>
<description>WebRTC JNIWebRTC本地接口</description>
<name>taoyao-webrtc-kurento</name>
<description>WebRTC协议簇实现kurento</description>
<dependencies>
<dependency>
<groupId>org.kurento</groupId>
<artifactId>kurento-client</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -19,7 +19,11 @@
<dependencies>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc-jni</artifactId>
<artifactId>taoyao-webrtc-jitsi</artifactId>
</dependency>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc-kurento</artifactId>
</dependency>
</dependencies>

View File

@@ -19,7 +19,11 @@
<dependencies>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc-jni</artifactId>
<artifactId>taoyao-webrtc-jitsi</artifactId>
</dependency>
<dependency>
<groupId>com.acgist</groupId>
<artifactId>taoyao-webrtc-kurento</artifactId>
</dependency>
</dependencies>