B
B
botanik26rus2018-12-25 09:50:16
Nginx
botanik26rus, 2018-12-25 09:50:16

HLS is not reproduced on the site, why is that?

Good afternoon.
Available:
nginx-rtmp-module,
nginx.conf

......
                location /hls   {
                        root  /tmp/;
                }

    application hls
    {
      live on;
      hls on;
      hls_path /tmp/hls/;
      hls_fragment 3s;
      hls_playlist_length 60;
    }
......

mime types
.....
    application/vnd.apple.mpegurl m3u8;
    video/mp2t ts;
.....

Run:
avconv -i rtsp://xx.xx.xx.xx:554/live/main -vcodec copy -b:a 32k -ar 11025 -ac 1 -sn -f flv rtmp://xxx.xxx.xxx .xxx/hls/live
Wordpres with plugins FV Player and Video.js HLS Player
stream link Playable
http://xxx.xxx.xxx.xxx/hls/live.m3u8
in VLC and mobile phone browser. Through the players on the site is not. I thought maybe the problem is in the players, I found HLS test streams in the internet, inserted everything works.
Tell me why the stream is played normally in the VLC-shke, but does not want to in the player on the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Khorikov, 2018-12-27
@Horik_off

Check all read and write permissions to the directory with HLS segments for nginx.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question