Remove invalid stream on the fly

I’ve a module that check if stream have connections and remove if it don’t receive connection by 5 minutes. I got the stream list with:

appInstance.getStreams().getPublishStreamNames()

But if has some invalid RTSP, it don’t come in the list, and still appears in “Application -> Incoming Streams” waiting for stream forever, so I’ve to enter on the engine manager and remove it manually.

How can I get this invalids RTSP and remove from Incoming Streams?

Hi,

How is the RTSP connection initiated? Is it through the MediaCaster functionality? If so, you can use the MediaCaster API to disconnect the stream.

Michelle