We want to use RTP-LIVE to prevent the cameras from streaming continuously to the server. However HLS streams have a problem with RTP-LIVE unless the streams are already published. When an HLS request comes in we can publish the stream using the REST API. Then delay a few seconds and send the command to begin streaming HLS. However when the HLS client terminates the stream continues to be published.
I would like to know how to start the stream and then have it automatically stop when all clients are disconnected. This is the way RTP-LIVE works, but the RESP command to start the stream seems to override that function. Anyone know if this is possible?
John A