From 8b4e90350bcc6c6f1188ca7e6ec66a565b70975a Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Sun, 4 Feb 2024 18:19:40 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E6=92=AD=E6=94=BEurl=E8=A7=84?= =?UTF-8?q?=E5=88=99=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 播放url规则.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/播放url规则.md b/播放url规则.md index 6f44287..24f490e 100644 --- a/播放url规则.md +++ b/播放url规则.md @@ -119,7 +119,7 @@ zlmeiakit工程自带webrtc测试播放/推流器,用户启动zlmediakit后, 另外,zlmediakit也支持使用webrtc播放mp4文件,http post接口类似为:`http://127.0.0.1/index/api/webrtc?app=record&stream=test.mp4&type=play`。 -webrtc的whip与whep协议,ZLMediakit 也支持, whip(推流)的接口为 `http://127.0.0.1/index/api/whip?app=live&stream=test`, whep(拉流)的接口为`http://127.0.0.1/index/api/whip?app=live&stream=test`,其中 url query参数传递媒体源4元组中的`app` `steam_id`,由于http协议本身支持`vhost`,所以不需要另外指定`vhost`。 +webrtc的whip与whep协议,ZLMediakit 也支持, whip(推流)的接口为 `http://127.0.0.1/index/api/whip?app=live&stream=test`, whep(拉流)的接口为`http://127.0.0.1/index/api/whep?app=live&stream=test`,其中 url query参数传递媒体源4元组中的`app` `steam_id`,由于http协议本身支持`vhost`,所以不需要另外指定`vhost`。 ## 6、url参数 ZLMediaKit会识别url中问号后面的字符串为url参数,其格式跟http一致,其中参数`vhost`是ZLMediaKit内置支持的参数,支持指定vhost。