Files
2023-06-14 11:59:25 +08:00

46 lines
2.3 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 信令
## 模块
|模块|名称|描述|
|:--|:--|:--|
|taoyao|桃夭|桃之夭夭灼灼其华|
|taoyao-boot|基础|基础模块|
|taoyao-signal|信令|信令模块|
|taoyao-server|服务|启动模块|
## 信令格式
[信令格式](https://localhost:8888/protocol/list)
## STUN/TURN
视频房间不用`STUN/TURN`服务,视频会话需要自己搭建`coturn`服务。
## SDP格式
```
v= (protocol version) # 协议版本
o= (owner/creator and session identifier) # 所有者/创建者和会话标识符
s= (session name) # 会话名称
i=* (session information) # 会话信息
u=* (URI of description) # URI描述
e=* (email address) # Email地址
p=* (phone number) # 电话号码
c=* (connection information - not required if included in all media) # 连接信息
b=* (zero or more bandwidth information lines) # 零或多个带宽信息
z=* (time zone adjustments) # 时区调整
k=* (encryption key) # 加密密钥
a=* (zero or more session attribute lines) # 零或多次会话属性
Time description # 时间描述
t= (time the session is active) # 会话活动时间
r=* (zero or more repeat times) # 零或多次重复次数
Media description # 媒体描述
m= (media name and transport address) # 媒体名称和传输地址
i=* (media title) # 媒体标题
c=* (connection information - optional if included at session-level) # 连接信息
b=* (zero or more bandwidth information lines) # 零或多个带宽信息
k=* (encryption key) # 加密密钥
a=* (zero or more media attribute lines) # 零或多个会话属性
````