Axis Communications Version 3 Stereo Receiver User Manual


 
Video Streaming API
This document is copyright protected and is the property of Axis Communications AB and may not be copied, reproduced or distributed in any way without
the prior written consent of Axis Communications AB.
a=transform:0,-1,0;1,0,0;0,0,1
3.2.5 RTSP OPTIONS
The OPTIONS request returns a list of supported RTSP commands. The command can be used to keep RTSP sessions alive by
repeating the OPTIONS request at regular intervals. The session timeout time is specied by the timeout parameter returned from
the SETUP command (see 3.2.6 RTSP SETUP).
The response to the OPTIONS command contains the additional header eld:
Header eld
Description
Public
Specify the supported RTSP commands.
Example 3:
List supported commands. The asterisk (*) makes the request apply to the server and not to a particular URL.
Request:
OPTIONS * RTSP/1.0
CSeq: 1
User-Agent: Axis AMC
Session: 12345678
Response:
RTSP/1.0 200 OK
CSeq: 1
Session: 12345678
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN
Date: Wed, 16 Jul 2008 12:48:48 GMT
Note
As indicated in the response, the GET_PARAMETER command is supported; there are however no parameters to retrieve.
3.2.6 RTSP SETUP
The SETUP command is used to congure the data delivery method.
The SETUP request requires an additional header eld which is also included in the response:
Header eld
Description
Transport
Specify how the data stream is transported. Supported variants
are:
RTP/AVP;unicast;client_port=port1-port2
RTP/AVP;multicast;client_port=port1-port2
RTP/AVP/TCP;unicast
If using unicast in combination with TCP, it is recommended to increase the size of the RTP packets to 64 000 bytes (from the standard
1500 bytes), provided that the client can accept larger packets. Also for unicast streaming over RTP/UDP it might be benecial to
increase the packet size if no packets are dropped. The packet size is changed using the following header eld in the SETUP request:
Header eld
Description
Blocksize
Request a specic media packet size. The packet size should be
a positive decimal number measured in octets.
18