Monday, October 7, 2013

Event HLS

HLS specification supports several playlist types specified with X-PLAYLIST-TYPE directive. When directive is absent live streaming is usually assumed which means client plays the stream from the current live position (several fragments to the end). There's another playlist type EVENT which tells the client always play the stream from the beginning. This type of playlist is useful for recording and streaming live events.

Since 1.0.5 version nginx-rtmp-module support HLS EVENT playlist type. The directive is

hls_type live|event

application mystream {
    live on;
    hls on;
    hls_path /tmp/hls;
    hls_playlist_length 1h;
    hls_type event;
}

Note however playlist length is not dynamic. Please make sure you have enough playlist length set with hls_playlist_length directive for the whole event.

1 comment:

  1. Hi,

    Thanks for your great module. I need help with secure link in HLS playing. Thanks you.

    ReplyDelete