Answer the question
In order to leave comments, you need to log in
How to properly configure config?
How to properly configure config? You need to make a VOD online broadcast in HLS format.
Everything is local to the machine.
The HTML folder contains the auto.mp4 video file, so you need to play it in order to play it online.
Server - Nginx, FFmpeg, Nginx-rtmp.
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
application testlive {
live on;
hls on;
hls_path /tmp/hls;
hls_nested on;
allow publish 127.0.0.1;
deny publish all;
}
}
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80 default_server;
charset utf-8;
root /usr/local/nginx/html;
index index.php index.html index.htm;
server_name server_domain_name_or_IP;
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
}
alias /tmp/hls;
}
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question