1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Update nginx.conf

This commit is contained in:
akhilleusuggo 2021-04-29 19:45:04 +03:00 committed by GitHub
parent 0096fffa87
commit a4cda533eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,11 @@ worker_processes 1;
rtmp { rtmp {
server { server {
listen 1935; listen 1935;
buflen 2s; buflen 1000ms;
chunk_size 4096;
ping_timeout 30s;
### Use case option (max_streams; default is 32 )
#max_streams 10;
allow play all; allow play all;
#creates our "live" full-resolution HLS videostream from our incoming encoder stream and tells where to put the HLS video manifest and video fragments #creates our "live" full-resolution HLS videostream from our incoming encoder stream and tells where to put the HLS video manifest and video fragments
application live { application live {
@ -18,6 +22,10 @@ worker_processes 1;
hls_path /HLS/live; hls_path /HLS/live;
hls_playlist_length 60m; hls_playlist_length 60m;
hls_fragment 4s; hls_fragment 4s;
drop_idle_publisher 30s;
sync 500ms;
#Experimental. Force dropped stream, or ended stream from being watched. (idle_streams)
#idle_streams off;
on_publish http://localhost/AVideo/plugin/Live/on_publish.php; on_publish http://localhost/AVideo/plugin/Live/on_publish.php;
on_publish_done http://localhost/AVideo/plugin/Live/on_publish_done.php; on_publish_done http://localhost/AVideo/plugin/Live/on_publish_done.php;
on_play http://localhost/AVideo/plugin/Live/on_play.php; on_play http://localhost/AVideo/plugin/Live/on_play.php;