如何设置 HLS 和 DVR 功能并读取它?

How to setup HLS and DVR functionality and read it?

我想使用 DVR 功能实时创建音频流。

我想在我的播放器中收听直播或搜索过去的流(几分钟前)。

我使用 nginx 来提供 hls 流。 如何设置 DVR 功能?我是否将 nginx 中的特定模块用于实时流和过去的流,并使用 past.m3u8 之类的参数?seek=timestamp

我也在寻找 html5 中的网络播放器并在 flash 中回退以阅读实时流并可以寻找过去的.m3u8 流。

我已经使用以下配置设置了 nginx:

    location /hls {
        # Serve HLS fragments
        types {
            application/vnd.apple.mpegurl m3u8;
            video/mp2t ts;
        }
        root /tmp;
        add_header Cache-Control no-cache;
    }

我使用 avconv 创建 hls 流。

    avconv -i [input] -vn -sn -c:a libfdk_aac -b:a 64k -hls_time 10 /path/to/hls/playlist.m3u8

要阅读此流,我使用允许搜索流的 clipr 播放器。