R
R
rusrich2018-01-24 17:05:09
linux
rusrich, 2018-01-24 17:05:09

How to set up MP4 video playback via HLS in M3U8 in NGINX PLUS?

So I add this to the nginx config ( source )

location /mp4 {
    hls;
    hls_fragment            5s;
    hls_buffers             10 10m;
    hls_mp4_buffer_size     1m;
    hls_mp4_max_buffer_size 5m;
    root /var/video/;
}

The video is in the site.ru/mp4/test.mp4 folder
According to the instructions from the source, with HLS enabled, the m3u8 playlist is formed there at the site.ru/mp4/test.mp4.m3u8 link.
The player does not see such a link either, the browser does not see it either.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question