I'm trying to figure out how to programatically start and stop the transcoding process when necessary. I haven't seen anything that explains this, which I would think be a simple process.
What I really only want to achieve is to have the transcoding running only when someone is viewing the stream - it doesn't make sense to transcode it while no one is viewing it. What is the best way to achieve this?
1) Request a stream by a certain name that when called starts transcoding?
2) Looks for some event that is triggered every time the stream starts playing and start it then? Stop the transcoding when I get a stop playing event?
Is there something like: transcoding.start() and transcoding.stop() ?
The logic seems like it should be simple, but can't figure it out in the context of what is available.