2

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

  1. 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.

Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95

1 Answers1

0

You were close enough; you have to use on_publish_done

Documentation here

Juan Trejos
  • 111
  • 5