mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-02-17 05:40:52 +08:00
支持http-ts
12
播放url规则.md
12
播放url规则.md
@@ -41,12 +41,22 @@ rtmp类型的流媒体源也支持`http-flv`、`websocket`直播,对应的url
|
||||
- `ws://127.0.0.1/live/0.flv?vhost=somedomain.com`
|
||||
- `wss://127.0.0.1/live/0.flv?vhost=somedomain.com`
|
||||
|
||||
当然,ZLMediaKit一般会把rtsp、rtmp流媒体源互相转换,也会转换成hls,播放的hls url如下:
|
||||
当然,ZLMediaKit一般会把rtsp、rtmp流媒体源互相转换,也会转换成hls/http-ts/ws-ts,播放的url如下:
|
||||
- HLS
|
||||
- `http://somedomain.com/live/0/hls.m3u8`
|
||||
- `https://somedomain.com/live/0/hls.m3u8`
|
||||
- `http://127.0.0.1/live/0/hls.m3u8?vhost=somedomain.com`
|
||||
- `https://127.0.0.1/live/0/hls.m3u8?vhost=somedomain.com`
|
||||
|
||||
- HTTP-TS/WS-TS(后缀为.live.ts,目的是为了解决与hls的冲突)
|
||||
- `http://somedomain.com/live/0.live.ts`
|
||||
- `https://somedomain.com/live/0.live.ts`
|
||||
- `http://127.0.0.1/live/0.live.ts?vhost=somedomain.com`
|
||||
- `https://127.0.0.1/live/0.live.ts?vhost=somedomain.com`
|
||||
- `ws://somedomain.com/live/0.live.ts`
|
||||
- `wss://somedomain.com/live/0.live.ts`
|
||||
- `ws://127.0.0.1/live/0.live.ts?vhost=somedomain.com`
|
||||
- `wss://127.0.0.1/live/0.live.ts?vhost=somedomain.com`
|
||||
|
||||
一般而言,上述url在ZLMediaKit都有效,因为ZLMediaKit默认转换流媒体源。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user