diff --git a/播放url规则.md b/播放url规则.md index 00bbfb7..6f44287 100644 --- a/播放url规则.md +++ b/播放url规则.md @@ -119,6 +119,8 @@ 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`。 + ## 6、url参数 ZLMediaKit会识别url中问号后面的字符串为url参数,其格式跟http一致,其中参数`vhost`是ZLMediaKit内置支持的参数,支持指定vhost。 url参数主要用于播放、推流鉴权,在触发hook api时,会把这些参数提交给第三方业务服务器