mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 03:28:09 +08:00
Updated 播放url规则 (markdown)
@@ -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。
|
||||
|
||||
Reference in New Issue
Block a user