RTSPMessageHeader Struct Reference

This describes the server response to each RTSP command. More...

#include <rtsp.h>


Data Fields

int content_length
 length of the data following this header
enum RTSPStatusCode status_code
 response code from server
int nb_transports
 number of items in the 'transports' variable below
int64_t range_start
 Time range of the streams that the server will stream.
int64_t range_end
RTSPTransportField transports [RTSP_MAX_TRANSPORTS]
 describes the complete "Transport:" line of the server in response to a SETUP RTSP command by the client
int seq
 sequence number
char session_id [512]
 the "Session:" field.
char real_challenge [64]
 the "RealChallenge1:" field from the server
char server [64]
 the "Server: field, which can be used to identify some special-case servers that are not 100% standards-compliant.


Detailed Description

This describes the server response to each RTSP command.

Definition at line 101 of file rtsp.h.


Field Documentation

length of the data following this header

Definition at line 103 of file rtsp.h.

Referenced by rtsp_parse_line(), and rtsp_send_cmd().

number of items in the 'transports' variable below

Definition at line 108 of file rtsp.h.

Referenced by find_transport(), make_setup_request(), and rtsp_parse_transport().

Definition at line 112 of file rtsp.h.

Referenced by rtsp_parse_line().

Time range of the streams that the server will stream.

In AV_TIME_BASE unit, AV_NOPTS_VALUE if not used

Definition at line 112 of file rtsp.h.

Referenced by rtsp_cmd_play(), and rtsp_parse_line().

the "RealChallenge1:" field from the server

Definition at line 125 of file rtsp.h.

Referenced by rtsp_parse_line(), and rtsp_read_header().

sequence number

Definition at line 118 of file rtsp.h.

Referenced by rtsp_parse_line(), and rtsp_parse_request().

the "Server: field, which can be used to identify some special-case servers that are not 100% standards-compliant.

We use this to identify Windows Media Server, which has a value "WMServer/v.e.r.sion", where version is a sequence of digits (e.g. 9.0.0.3372). Helix/Real servers use something like "Helix [..] Server Version v.e.r.sion (platform) (RealServer compatible)" or "RealServer Version v.e.r.sion (platform)", where platform is the output of $uname -msr | sed 's/ /-/g'.

Definition at line 134 of file rtsp.h.

Referenced by rtsp_parse_line(), and rtsp_read_header().

the "Session:" field.

This value is initially set by the server and should be re-transmitted by the client in every RTSP command.

Definition at line 122 of file rtsp.h.

Referenced by rtsp_cmd_pause(), rtsp_cmd_play(), rtsp_cmd_setup(), rtsp_cmd_teardown(), rtsp_parse_line(), and rtsp_send_cmd().

response code from server

Definition at line 105 of file rtsp.h.

Referenced by make_setup_request(), rtsp_read_header(), rtsp_read_packet(), rtsp_read_pause(), rtsp_read_play(), and rtsp_send_cmd().

describes the complete "Transport:" line of the server in response to a SETUP RTSP command by the client

Definition at line 116 of file rtsp.h.

Referenced by find_transport(), make_setup_request(), and rtsp_parse_transport().


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:35:48 2012 for FFmpeg by  doxygen 1.5.8