Hello,
I have setup a nginx rtmp server using this guide and everything work except that I have a bug.
If I load the viewer's page after the stream has already begun. It will only show a black screen with the sound.
To make it work I either have to restart the stream or switch to another scene and then get back to the right scene.
But If the viewer reload his page or a new viewer connects I have to do it again. Kinda annoying.
I'm using :
- nginx rtmp server
- OBS
- UMedia Flash player
I don't know which one cause the problem but I have test with another player and the bug was still there.
Nginx config file :
I have remove the HTTP part as it was conflicting with my LAMP. I tried with it but that didn't solved anything.
-----------
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
buflen 1ms;
wait_video off;
out_queue 8;
play_restart on;
publish_notify on;
application live {
live on;
record off;
}
}
}
-----------
Thanks for your help and your time.
Konorr.