I'd like to write an extension to Red5 that gets a notification when a live stream has been recorded and the recording has been written to disk. I'm using Red5Pro.
I say "extension" because I'm not clear on whether I should create a plugin, or if I can do this by creating a subclass of MultiThreadedApplicationAdapter. I've started by creating a MultiThreadedApplicationAdapter subclass.
My test webapp's appStart method is called when Red5Pro starts up, so I know the webapp is installed in the right place.
I use OBS to publish to rtmp://localhost/live/stream1 and I view it via ffplay rtmp://localhost/live/stream1. That works as expected.
However, none of the other methods I've overridden (appConnect, appDisconnect, streamBroadcastStop, streamRecordStop, etc.) is ever called.
The Red5 event model isn't clear to me, and I'm beginning to wonder if it's possible for one webapp to be notified of events in another (in this case, /live) - even events that seem to be reflected in the MultiThreadedApplicationAdapter API.
How can I get notified on RTMP connections opening, closing, or especially when VOD recordings are written?
I appreciate your advice.