nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

How to know if nginx rtmp streaming is stopped or finished?

Open hkmsadek opened this issue 3 years ago • 1 comments

We are trying to make a live streaming and we implemented nginx rtmp module and added on_publish callback to check if the stream key is valid or not.

Now we need one thing

We need to call api like on_publish when the user stops streaming for example clicks stop streaming in OBS. I tried with on_done but it is called every few seconds automatically not when stream is closed.

How to do that?

Thank you.

hkmsadek avatar Jul 28 '22 10:07 hkmsadek

Try to use on_pushlish_done

tranduongms1 avatar Oct 06 '22 06:10 tranduongms1