Answer the question
In order to leave comments, you need to log in
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
HLS uses .m3u8 playlists, and they must be specified. Not the names of the chunks
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/;
}
clip: {
sources: [
{ type: "application/x-mpegurl", src: "http://site.ru/mp4/test.mp4.m3u8" },
{ type: "video/mp4", src: "http://site.ru/mp4/test.mp4" }
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question