How to automatically connect to a RTSP stream

Hello,

I’ve carefully read the following article about re-streaming video from an ip camera : https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming

I would like to know if there is a possibility to automatically start the camera stream instead of starting it manually through the streammanager.

And second : Is it possible to automatically start the camera stream when somebody is asking for the stream and stop it when there is no connection to the application ?

Thank you for your help.

Best regards,

Artur.

Artur,

You can use /conf/StartUpStreams.xml to start steams when Wowza server is started.

If your clients are only Flash applications, you can use StreamType “rtp-live”, then you do not have to use StreamManager or StartUpStreams.xml. The first client that connects in Flash application will start the stream. And the stream will stop shortly after the last client disconnects.

But if you are streaming IPhone, Silverlight or RTSP, you have to start the stream.

Richard

Yes, Wowza will try to reconnect MediaCaster streams that have been interrupted outside Wowza, by network conditions for example. That will start 8 seconds after Wowza detects the stream is not working, and will continue indefinitely until Wowza re-connects or the steam is stopped with in StreamManager or other method using the MediaCaster API

Richard

Thanks a lot for your answer.

StartUpStreams.xml seems to be the right solution.

If i use it , does it mean that any disconnected stream will be automatically reconnected (not only on server start) ?

Artur.