Harmonic icon indicating copy to clipboard operation
Harmonic copied to clipboard

Call custom API endpoint on stream dispose

Open ardianreqica opened this issue 3 years ago • 2 comments

I am publishing multiple streams on RTMP server(on each call I made custom job like updating stream status in db). -> This part is easy since in RTMP create stream message you have publishingName(StreamKey).

I am asking where is the right place to do custom work on stream stop (to do custom api call for updating stream status in db)

I made this part in RtmpController in DeleteStreamAsync method (first mapped streamID with streamName) but when running multiple stream - that custom API call is not made.

Does this part need to be handle on different part or am I doing something wrong?

ardianreqica avatar Oct 14 '21 08:10 ardianreqica

I understand that it has been 2 years since this post, but I'm stuck... How did you manage to execute anything on 'deleteStream' event? I can't trigger anything when stream is stopping using OBS.

drajvver avatar Nov 20 '23 20:11 drajvver

Hi drajvver, I can check it later when I have time.

a1q123456 avatar Nov 21 '23 13:11 a1q123456