RTSPState Struct Reference

Private data for the RTSP demuxer. More...

#include <rtsp.h>


Data Fields

URLContextrtsp_hd
int nb_rtsp_streams
 number of items in the 'rtsp_streams' variable
struct RTSPStream ** rtsp_streams
 streams in this session
enum RTSPClientState state
 indicator of whether we are currently receiving data from the server.
int64_t seek_timestamp
 the seek value requested when calling av_seek_frame().
int seq
 RTSP command sequence number.
char session_id [512]
 copy of RTSPMessageHeader->session_id, i.e.
enum RTSPTransport transport
 the negotiated data/packet transport protocol; e.g.
enum RTSPLowerTransport lower_transport
 the negotiated network layer transport protocol; e.g.
enum RTSPServerType server_type
 brand of server that we're talking to; e.g.
char last_reply [2048]
 The last reply of the server to a RTSP command.
void * cur_transport_priv
 RTSPStream->transport_priv of the last stream that we read a packet from.
int need_subscription
 The following are used for Real stream selection.
enum AVDiscard real_setup_cache [MAX_STREAMS]
 stream setup during the last frame read.
char last_subscription [1024]
 the last value of the "SET_PARAMETER Subscribe:" RTSP command.


Detailed Description

Private data for the RTSP demuxer.

Definition at line 162 of file rtsp.h.


Field Documentation

RTSPStream->transport_priv of the last stream that we read a packet from.

Definition at line 210 of file rtsp.h.

Referenced by rtsp_read_packet().

The last reply of the server to a RTSP command.

Definition at line 206 of file rtsp.h.

Referenced by rtsp_send_cmd().

the last value of the "SET_PARAMETER Subscribe:" RTSP command.

this is used to send the same "Unsubscribe:" if stream setup changed, before sending a new "Subscribe:" command.

Definition at line 224 of file rtsp.h.

Referenced by rtsp_read_packet().

the negotiated network layer transport protocol; e.g.

TCP or UDP uni-/multicast

Definition at line 198 of file rtsp.h.

Referenced by make_setup_request(), rtsp_read_close(), and rtsp_read_packet().

number of items in the 'rtsp_streams' variable

Definition at line 166 of file rtsp.h.

Referenced by make_setup_request(), rtsp_close_streams(), rtsp_read_packet(), sdp_parse_line(), sdp_read_header(), tcp_read_packet(), and udp_read_packet().

The following are used for Real stream selection.

whether we need to send a "SET_PARAMETER Subscribe:" command

Definition at line 215 of file rtsp.h.

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

stream setup during the last frame read.

This is used to detect if we need to subscribe or unsubscribe to any new streams.

Definition at line 219 of file rtsp.h.

Referenced by rtsp_read_packet().

the seek value requested when calling av_seek_frame().

This value is subsequently used as part of the "Range" parameter when emitting the RTSP PLAY command. If we are currently playing, this command is called instantly. If we are currently paused, this command is called whenever we resume playback. Either way, the value is only used once, see rtsp_read_play() and rtsp_read_seek().

Definition at line 182 of file rtsp.h.

Referenced by rtsp_read_header(), rtsp_read_play(), and rtsp_read_seek().

RTSP command sequence number.

Definition at line 187 of file rtsp.h.

Referenced by rtsp_read_header(), and rtsp_send_cmd().

brand of server that we're talking to; e.g.

WMS, REAL or other. Detected based on the value of RTSPMessageHeader->server or the presence of RTSPMessageHeader->real_challenge

Definition at line 203 of file rtsp.h.

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

copy of RTSPMessageHeader->session_id, i.e.

the server-provided session identifier that the client should re-transmit in each RTSP command

Definition at line 191 of file rtsp.h.

Referenced by make_setup_request(), and rtsp_send_cmd().

indicator of whether we are currently receiving data from the server.

Basically this isn't more than a simple cache of the last PLAY/PAUSE command sent to the server, to make sure we don't send 2x the same unexpectedly or commands in the wrong state.

Definition at line 174 of file rtsp.h.

Referenced by rtsp_read_header(), rtsp_read_packet(), rtsp_read_pause(), rtsp_read_play(), and rtsp_read_seek().

the negotiated data/packet transport protocol; e.g.

RTP or RDT

Definition at line 194 of file rtsp.h.

Referenced by make_setup_request(), rtsp_close_streams(), rtsp_open_transport_ctx(), rtsp_read_packet(), sdp_parse_line(), and tcp_read_packet().


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