diff --git a/webrtc信令交互格式.md b/webrtc信令交互格式.md index 0ab40fe..e027266 100644 --- a/webrtc信令交互格式.md +++ b/webrtc信令交互格式.md @@ -10,6 +10,17 @@ zlmediakit webrtc信令格式新增支持whip/whep标准,测试地址如下: ## 一、webrtc sdp交换请求基本格式 - 请求地址: /index/api/webrtc?app=live&stream=test&type=[push/play/echo]&preferred_tcp=[0/1]&cand_tcp=[ip:port]&cand_udp=[ip:port] + +| 参数名 | 是否必须 | 类型 | 释意 | +| :----: | :------: | :----: | :----: | +| app | Y | string |流应用名| +| stream | Y | string |流名称| +| type | Y | string |push/play/echo| +| preferred_tcp | N | bool/int |是否为tcp模式优先,默认否| +| cand_tcp | N | string |ip:port, zlm对播放器可见webrtc tcp地址| +| cand_udp | N | string |ip:port, zlm对播放器可见webrtc udp地址| + + - 请求方式: http post - 请求body: webrtc offer sdp - 回复body: