简体   繁体   English

带DVR的Nginx-rtmp-module HLS

[英]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. 我已经用HLS设置了nginx-rtmp-module,我想知道是否有一种像Wowza的nDVR功能一样设置DVR的方法,它可以让您倒退实时流,甚至到流的开始。 Right now I only get the most recent 40 seconds or so. 现在,我只得到最近的40秒左右。 Thanks! 谢谢!

(I gather it's possible from the comments here: http://nginx-rtmp.blogspot.ca/2013/02/multiple-locations-for-vod-in-098.html ) (我从这里的评论中收集到这是可能的: 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. 完全有可能,您只需要在“应用程序配置”部分中增加HLS播放列表的长度即可。 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: 例如,如果您想要30分钟长的DVR播放列表,可以将其放在“应用”部分中:

hls_playlist_length 30m;

See nginx-rtmp-module hls directives for more info. 有关更多信息,请参见nginx-rtmp-module hls指令

Note 注意

The HLS player you use needs to support this. 您使用的HLS播放器需要支持此功能。 For example Flowplayer/JWplayer will however Safari (both Mac/iOS) will just play the live stream. 例如,Flowplayer / JWplayer将使用Safari(Mac / iOS)(仅Mac / iOS)播放实时流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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