I’ve been working on a dumb little system for playing back video from a very old HDHomerun device that does not have built-in DLNA.
My solution uses ffmpeg on the backend to create the HLS stream, but this is really hard on the server if nobody is watching.
Is there a hook I can use to determine when the client has stopped watching the stream, so that I can use that hook to call my backend and tell it to stop the encoding process?