Can someone provide insight on how to add an onUpdateevent while the RTMP stream is publishing?
One of the features I heavily utilized with nginx-rtmp was the onUpdateevent. You can set it to run a GET or POST command every x seconds. Which the time can be set as a parameter in the config.
This is useful if you need to control your streams such as being able to interrupt them to set time limits on how long someone can stream.
I'm not familiar enough with node and this to add the event but I'm assuming it would need to be setInterval task that runs and emits an onUpdateevent which would be checked like the other events so you can take action.
Can someone provide insight on how to add an
onUpdate
event while the RTMP stream is publishing? One of the features I heavily utilized with nginx-rtmp was theonUpdate
event. You can set it to run a GET or POST command every x seconds. Which the time can be set as a parameter in the config. This is useful if you need to control your streams such as being able to interrupt them to set time limits on how long someone can stream.https://github.com/arut/nginx-rtmp-module/wiki/Directives#on_update
I'm not familiar enough with node and this to add the event but I'm assuming it would need to be setInterval task that runs and emits an
onUpdate
event which would be checked like the other events so you can take action.Any help would be appreciated. @illuspas