From 9c58a645983199f6e6c215f45647d46b1a082957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Sat, 30 Mar 2024 15:41:08 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20webrtc=E4=BF=A1=E4=BB=A4=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E6=A0=BC=E5=BC=8F=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc信令交互格式.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: