We're using an older version of the VLC player and we're interfacing with it through NativeLibVlc.
Here's how I reproduce the problem I'm trying to fix. I've got a single Axis camera to work with and I can access the video with no problems via this URL: rtsp://10.1.6.3/axis-media/media.amp
Then I unplug it from the network. Then I give the viewer another URL, in this case I just give it a local AVI file. It takes about 90 seconds for the new video to start playing.
Why is it taking so long? I've experimented with the timeout parameters I've located:
":rtsp-session-timeout=1"
":netsync-timeout=5000"
"--ipv4-timeout=5000"
but makes no difference.
A couple other things I've noticed.
If I re-network the camera withint ~30 seconds, the stream is re-joined. Longer than that and it never recovers.
If, after feeding in a new URL (as above) I plug the camera back in, the new stream starts up in a couple seconds.
In the client's world, switching to new sources in a timely fashion is an acceptable solution.
Thanks,
Daniel Holt