R
R
rusrich2018-01-10 08:16:38
Nginx
rusrich, 2018-01-10 08:16:38

How to make HLS + NGINX Plus + Flowplayer work?

The file storage contains mp4 files.
Video content is viewed using the html5 version of Flowplayer.
I can't force broadcast video via HLS.
NGINX config
location ~ ^/tv/media/.+\.mp4$ {
hls;
hls_fragment 5s;
hls_buffers 10 10m;
hls_mp4_buffer_size 1m;
hls_mp4_max_buffer_size 5m;
root /var/www/;
}
Do you need to add something else to the Flowplayer as a video source?
By default, standard links to mp4 files are specified as a source.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2018-01-10
@Fixid

HLS uses .m3u8 playlists, and they must be specified. Not the names of the chunks

R
rusrich, 2018-01-20
@rusrich

So far, nothing works. Below is the information as I understand it.
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.
Does not appear in the m3u8 directory. The player does not see such a link either.
For FlowPlayer, the source is specified like this:
clip: {
    sources: [
    { type: "application/x-mpegurl", src: "http://site.ru/mp4/test.mp4.m3u8" },
    { type: "video/mp4",             src: "http://site.ru/mp4/test.mp4"  }
    ]
  }

What am I doing wrong, tell me please.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question