Wowza Community

RTSP live ipcamera only on demand and disconnect after a timeout?

Hi,

until Wowza 3.5 the stream connection to a RTSP source from a ip camera can work ‘on demand’.

Wowza 3.5

In the case a Flashplayer/RTMP is call the stream alias file ‘camera.stream’ Wowza start the connection to the ip camera and stream it. After a timeout of eg 60 seconds without a client on the stream, the connection to the camera where disconnected.

Wowza 4.x

After the start of the connection it don’t disconnect.

We have customers with mobile connection to ip cameras. And the ip cameras should only used on demand some minutes a week.

Do you know a configuration option to disconnect the ip camera after some timeout without any clients? (with Wowza 4.x)

If your clients are RTMP and/or RTSP you would just need to set your stream type to “rtp-live”. When using the “rtp-live” stream type in your application’s configuration file, the source stream will be published to Wowza only when the first client connects to the stream.

For HTTP streams to be active, the data packets need to be packetized. Wowza will start packetizing the HTTP stream as soon as the stream is published. The stream is not published if there isn’t at least one client requesting the stream.

So basically, an HTTP client can not be the first to request the rtp-live stream. Once the stream has been published by an RTMP client, HTTP clients can connect.

After the last client disconnects, MediaCaster system will stop the stream.

Hope this helps,

Salvadore