nginx-rtmp-module
nginx-rtmp-module copied to clipboard
exec_record_done or exec_publish_done
Can anyone explain which one to use in some use cases? I record all of the live stream, which one should I use?
The live streaming have support on pausing which is disconnect from the media server then reconnect with the same stream name
.
Which one should I use for this kind of use case? I need to know when the user pauses / stopped the stream, I'm thinking of using one of these two event to call an API
Use exec_record_done to manage recordings, and exec_publish_done to manage logging the user out, destroying the stream key etc.
@kenanchristian @UKNickyD Did you have success with exec_record_done
? I'm only able to run the ffmpeg
command with it, nothing else
hi, im facing the same problem if i want to run a script and run it from conf file i dosnt fire up.
I did create a file addtodatabase.sh in /home/addtodatabase.sh and I add the following code :
#!/bin/bash echo "INSERT INTO comments (comment,owner,live_id) VALUES ('test, '2', '9');" | mysql -uUSER-pPASS DB_NAME;
if I execute it in from the command line it works 100% fine.
and on the nginx.conf I did try
exec_record_done bash -c "/home/addtodatabase.sh";
but it does not work is there someone can help me with this problem Thank You.
Any solution?
I also encountered this problem. Has anyone solved it? thank you