Search code examples
http-live-streamingvideo.jsm3u8

How do updates happen with Live streaming in HLS


An HLS manifest contain a master playlist and a media playlist in case of multiple qualities.Only a media playlist is needed in case there are no multiple qualities.As the live stream progresses , the segments of the video must be running out.

How does the m3u8 manifest gets updated ?

I tried downloading live m3u8 manifest from free live streams after X mins but i see the master playlist as well as the meida playlist.I assume the m3u8 manifest need to get updated regularly by overriding the same media playlist url with more .ts segments each time.

Thanks for the help


Solution

  • I assume the m3u8 manifest need to get updated regularly by overriding the same media playlist url with more .ts segments each time.

    Exactly. The file is updated and replaced. The player downloads an update regularly. Best practices are documented in the RFC: https://www.rfc-editor.org/rfc/rfc8216