Hola a todos, he estado trasteando con asustor live y dentro del .conf me he dado cuenta que tanto el dash como el hls esta on, mi duda es si es posible sacar el enlace hls/m3u8 con el mismo servidor rtmp, dejo la estructura del .conf
worker_processes auto;
rtmp_auto_push on;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4000;
application live {
live on;
on_publish http://192.168.1.8/asustor_live/fileToUpload/auth.php;
push rtmp://192.168.1.8:31935/live/key
recorder all {
record off;
record_path /vout;
#record_max_size 100000K;
#record_max_frames 4;
record_unique on;
record_suffix _%Y-%m-%d_%H-%M-%S.flv;
#record_append on;
#record_interval s;
#record_notify on;
#exec_record_done ffmpeg -i $path -f mp4 /vout/$basename.mp4;
}
#hls on;
#hls_path /vout/hls;
#dash on;
#dash_path /vout/dash;
notify_method get;
}
}
}
http {
server {
listen 80;
location /hls {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
root /vout;
add_header Cache-Control no-cache;
add_header Allow-Control-Allow-Origin *;
}
location /dash {
types {
application/dash+xml mpd;
video/mp4 m4v;
audio/mp4 m4a;
}
root /vout;
add_header Cache-Control no-cache;
add_header Allow-Control-Allow-Origin *;
}
}
}