NGINX CONF:
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
application live {
live on;
interleave on;
hls on;
hls_path /stream/hls;
hls_fragment 15s;
}
}
}
http {
default_type application/octet-stream;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';
server {
listen 80;
location /tv {
root /stream/hls;
}
}
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
text/html html;
}
}
файлы hls создаються но не работают в плеерах использую ffmpeg