#include <rtsp.h>
Data Fields | |
URLContext * | rtsp_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. | |
int | timeout |
copy of RTSPMessageHeader->timeout, i.e. | |
int64_t | last_cmd_time |
timestamp of the last RTSP command that we sent to the RTSP server. | |
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 | auth [128] |
plaintext authorization line (username:password) | |
HTTPAuthState | auth_state |
authentication state | |
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. | |
char | control_uri [1024] |
some MS RTSP streams contain a URL in the SDP that we need to use for all subsequent RTSP requests, rather than the input URI; in other cases, this is a copy of AVFormatContext->filename. | |
int64_t | start_time |
The synchronized start time of the output streams. | |
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. | |
AVFormatContext * | asf_ctx |
The following are used for RTP/ASF streams. | |
uint64_t | asf_pb_pos |
cache for position of the asf demuxer, since we load a new data packet in the bytecontext for each incoming RTSP packet. |
Definition at line 183 of file rtsp.h.
The following are used for RTP/ASF streams.
ASF demuxer context for the embedded ASF stream from WMS servers
Definition at line 267 of file rtsp.h.
Referenced by asfrtp_parse_packet(), asfrtp_parse_sdp_line(), ff_rtsp_close_streams(), and ff_wms_parse_sdp_a_line().
uint64_t RTSPState::asf_pb_pos |
cache for position of the asf demuxer, since we load a new data packet in the bytecontext for each incoming RTSP packet.
Definition at line 271 of file rtsp.h.
Referenced by asfrtp_parse_packet(), and ff_wms_parse_sdp_a_line().
char RTSPState::auth[128] |
char RTSPState::control_uri[1024] |
some MS RTSP streams contain a URL in the SDP that we need to use for all subsequent RTSP requests, rather than the input URI; in other cases, this is a copy of AVFormatContext->filename.
Definition at line 277 of file rtsp.h.
Referenced by rtsp_write_close(), rtsp_write_record(), and sdp_parse_line().
int64_t RTSPState::last_cmd_time |
char RTSPState::last_reply[2048] |
char RTSPState::last_subscription[1024] |
the negotiated network layer transport protocol; e.g.
TCP or UDP uni-/multicast
Definition at line 229 of file rtsp.h.
Referenced by ff_rtsp_close_streams(), and rtsp_write_packet().
number of items in the 'rtsp_streams' variable
Definition at line 187 of file rtsp.h.
Referenced by ff_rtsp_close_streams(), rtsp_write_packet(), sdp_parse_line(), and sdp_read_header().
enum AVDiscard RTSPState::real_setup_cache[MAX_STREAMS] |
Definition at line 184 of file rtsp.h.
Referenced by rtsp_write_close(), rtsp_write_header(), rtsp_write_packet(), and tcp_write_packet().
struct RTSPStream** RTSPState::rtsp_streams [read] |
streams in this session
Definition at line 189 of file rtsp.h.
Referenced by ff_rtsp_close_streams(), rtsp_write_packet(), sdp_parse_line(), and sdp_read_header().
int64_t RTSPState::seek_timestamp |
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().
int RTSPState::seq |
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 234 of file rtsp.h.
Referenced by sdp_parse_line().
char RTSPState::session_id[512] |
int64_t RTSPState::start_time |
The synchronized start time of the output streams.
Definition at line 280 of file rtsp.h.
Referenced by rtsp_rtp_mux_open().
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 195 of file rtsp.h.
Referenced by rtsp_write_packet(), and rtsp_write_record().
the negotiated data/packet transport protocol; e.g.
RTP or RDT
Definition at line 225 of file rtsp.h.
Referenced by ff_rtsp_close_streams(), rtsp_open_transport_ctx(), and sdp_parse_line().