mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update nginx.conf
This commit is contained in:
parent
0096fffa87
commit
a4cda533eb
1 changed files with 9 additions and 1 deletions
|
@ -7,7 +7,11 @@ worker_processes 1;
|
|||
rtmp {
|
||||
server {
|
||||
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;
|
||||
#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 {
|
||||
|
@ -18,6 +22,10 @@ worker_processes 1;
|
|||
hls_path /HLS/live;
|
||||
hls_playlist_length 60m;
|
||||
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_done http://localhost/AVideo/plugin/Live/on_publish_done.php;
|
||||
on_play http://localhost/AVideo/plugin/Live/on_play.php;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue