简体   繁体   中英

nginx-rtmp-module HLS with DVR

I've set up nginx-rtmp-module with HLS and I'm wondering if there's a way to set up DVR like Wowza's nDVR feature that lets you rewind a live stream, even to the very beginning of the stream. Right now I only get the most recent 40 seconds or so. Thanks!

(I gather it's possible from the comments here: http://nginx-rtmp.blogspot.ca/2013/02/multiple-locations-for-vod-in-098.html )

Entirely possible, you just need to increase the HLS playlist length in your app config section. I've been using this myself and it works well!

For example if you'd like a DVR playlist of 30 minutes long, you'd put this inside your app section:

hls_playlist_length 30m;

See nginx-rtmp-module hls directives for more info.

Note

The HLS player you use needs to support this. For example Flowplayer/JWplayer will however Safari (both Mac/iOS) will just play the live stream.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM