RTMPContext Struct Reference

protocol handler context More...


Data Fields

const AVClassclass
URLContextstream
 TCP stream used in interactions with RTMP server.
RTMPPacket prev_pkt [2][RTMP_CHANNELS]
 packet history used when reading and sending packets
int in_chunk_size
 size of the chunks incoming RTMP packets are divided into
int out_chunk_size
 size of the chunks outgoing RTMP packets are divided into
int is_input
 input/output flag
char * playpath
 stream identifier to play (with possible "mp4:" prefix)
int live
 0: recorded, -1: live, -2: both
char * app
 name of application
char * conn
 append arbitrary AMF data to the Connect message
ClientState state
 current state
int main_channel_id
 an additional channel ID which is used for some invocations
uint8_tflv_data
 buffer with data for demuxer
int flv_size
 current buffer size
int flv_off
 number of bytes read from current buffer
int flv_nb_packets
 number of flv packets published
RTMPPacket out_pkt
 rtmp packet, created from flv a/v or metadata (for output)
uint32_t client_report_size
 number of bytes after which client should report to server
uint32_t bytes_read
 number of bytes read from server
uint32_t last_bytes_read
 number of bytes read last reported to server
int skip_bytes
 number of bytes to skip from the input FLV stream in the next write call
uint8_t flv_header [11]
 partial incoming flv packet header
int flv_header_bytes
 number of initialized bytes in flv_header
int nb_invokes
 keeps track of invoke messages
char * tcurl
 url of the target stream
char * flashver
 version of the flash plugin
char * swfhash
 SHA256 hash of the decompressed SWF file (32 bytes).
int swfhash_len
 length of the SHA256 hash
int swfsize
 size of the decompressed SWF file
char * swfurl
 url of the swf player
char * swfverify
 URL to player swf file, compute hash/size automatically.
char swfverification [42]
 hash of the SWF verification
char * pageurl
 url of the web page
char * subscribe
 name of live stream to subscribe
int server_bw
 server bandwidth
int client_buffer_time
 client buffer time in ms
int flush_interval
 number of packets flushed in the same request (RTMPT only)
int encrypted
 use an encrypted connection (RTMPE only)
TrackedMethodtracked_methods
 tracked methods buffer
int nb_tracked_methods
 number of tracked methods
int tracked_methods_size
 size of the tracked methods buffer
int listen
 listen mode flag
int listen_timeout
 listen timeout to wait for new connections
int nb_streamid
 The next stream id to return on createStream calls.


Detailed Description

protocol handler context

Definition at line 74 of file rtmpproto.c.


Field Documentation

name of application

Definition at line 83 of file rtmpproto.c.

Referenced by gen_connect(), read_connect(), and rtmp_open().

number of bytes read from server

Definition at line 93 of file rtmpproto.c.

Referenced by gen_bytes_read(), get_packet(), and rtmp_open().

Definition at line 75 of file rtmpproto.c.

client buffer time in ms

Definition at line 110 of file rtmpproto.c.

Referenced by gen_buffer_time().

number of bytes after which client should report to server

Definition at line 92 of file rtmpproto.c.

Referenced by get_packet(), handle_client_bw(), and rtmp_open().

append arbitrary AMF data to the Connect message

Definition at line 84 of file rtmpproto.c.

Referenced by gen_connect().

use an encrypted connection (RTMPE only)

Definition at line 112 of file rtmpproto.c.

Referenced by rtmp_handshake(), and rtmp_open().

version of the flash plugin

Definition at line 100 of file rtmpproto.c.

Referenced by gen_connect(), and rtmp_open().

number of packets flushed in the same request (RTMPT only)

Definition at line 111 of file rtmpproto.c.

Referenced by rtmp_write().

buffer with data for demuxer

Definition at line 87 of file rtmpproto.c.

Referenced by get_packet(), handle_notify(), rtmp_close(), rtmp_open(), rtmp_read(), and rtmp_write().

partial incoming flv packet header

Definition at line 96 of file rtmpproto.c.

Referenced by rtmp_write().

number of initialized bytes in flv_header

Definition at line 97 of file rtmpproto.c.

Referenced by rtmp_write().

number of flv packets published

Definition at line 90 of file rtmpproto.c.

Referenced by rtmp_write().

number of bytes read from current buffer

Definition at line 89 of file rtmpproto.c.

Referenced by get_packet(), handle_notify(), rtmp_open(), rtmp_read(), and rtmp_write().

current buffer size

Definition at line 88 of file rtmpproto.c.

Referenced by get_packet(), handle_notify(), rtmp_open(), rtmp_read(), and rtmp_write().

size of the chunks incoming RTMP packets are divided into

Definition at line 78 of file rtmpproto.c.

Referenced by get_packet(), handle_chunk_size(), read_connect(), rtmp_open(), and rtmp_write().

input/output flag

Definition at line 80 of file rtmpproto.c.

Referenced by gen_connect(), get_packet(), handle_chunk_size(), handle_invoke_result(), rtmp_close(), rtmp_handshake(), and rtmp_open().

number of bytes read last reported to server

Definition at line 94 of file rtmpproto.c.

Referenced by get_packet(), and rtmp_open().

listen mode flag

Definition at line 116 of file rtmpproto.c.

Referenced by rtmp_open().

listen timeout to wait for new connections

Definition at line 117 of file rtmpproto.c.

Referenced by rtmp_open().

0: recorded, -1: live, -2: both

Definition at line 82 of file rtmpproto.c.

Referenced by gen_play(), and handle_invoke_result().

an additional channel ID which is used for some invocations

Definition at line 86 of file rtmpproto.c.

Referenced by gen_buffer_time(), gen_delete_stream(), gen_play(), gen_publish(), handle_invoke_result(), and rtmp_write().

The next stream id to return on createStream calls.

Definition at line 118 of file rtmpproto.c.

Referenced by send_invoke_response().

number of tracked methods

Definition at line 114 of file rtmpproto.c.

Referenced by add_tracked_method(), del_tracked_method(), find_tracked_method(), and free_tracked_methods().

size of the chunks outgoing RTMP packets are divided into

Definition at line 79 of file rtmpproto.c.

Referenced by handle_chunk_size(), read_connect(), rtmp_open(), rtmp_send_packet(), and send_invoke_response().

rtmp packet, created from flv a/v or metadata (for output)

Definition at line 91 of file rtmpproto.c.

Referenced by rtmp_close(), and rtmp_write().

url of the web page

Definition at line 107 of file rtmpproto.c.

Referenced by gen_connect().

stream identifier to play (with possible "mp4:" prefix)

Definition at line 81 of file rtmpproto.c.

Referenced by gen_fcpublish_stream(), gen_fcunpublish_stream(), gen_play(), gen_publish(), gen_release_stream(), handle_invoke_result(), and rtmp_open().

RTMPPacket RTMPContext::prev_pkt[2][RTMP_CHANNELS]

packet history used when reading and sending packets

Definition at line 77 of file rtmpproto.c.

Referenced by get_packet(), handle_chunk_size(), read_connect(), rtmp_send_packet(), rtmp_write(), and send_invoke_response().

server bandwidth

Definition at line 109 of file rtmpproto.c.

Referenced by gen_server_bw(), handle_server_bw(), read_connect(), and rtmp_open().

number of bytes to skip from the input FLV stream in the next write call

Definition at line 95 of file rtmpproto.c.

Referenced by rtmp_open(), and rtmp_write().

current state

Definition at line 85 of file rtmpproto.c.

Referenced by get_packet(), handle_invoke_status(), rtmp_close(), rtmp_open(), and send_invoke_response().

name of live stream to subscribe

Definition at line 108 of file rtmpproto.c.

Referenced by handle_invoke_result().

SHA256 hash of the decompressed SWF file (32 bytes).

Definition at line 101 of file rtmpproto.c.

Referenced by rtmp_calc_swf_verification().

length of the SHA256 hash

Definition at line 102 of file rtmpproto.c.

Referenced by rtmp_calc_swf_verification().

size of the decompressed SWF file

Definition at line 103 of file rtmpproto.c.

Referenced by handle_ping(), rtmp_calc_swf_verification(), rtmp_calc_swfhash(), and rtmp_handshake().

url of the swf player

Definition at line 104 of file rtmpproto.c.

Referenced by gen_connect().

hash of the SWF verification

Definition at line 106 of file rtmpproto.c.

Referenced by gen_swf_verification(), and rtmp_calc_swf_verification().

URL to player swf file, compute hash/size automatically.

Definition at line 105 of file rtmpproto.c.

Referenced by rtmp_calc_swfhash(), and rtmp_open().

url of the target stream

Definition at line 99 of file rtmpproto.c.

Referenced by gen_connect(), and rtmp_open().

tracked methods buffer

Definition at line 113 of file rtmpproto.c.

Referenced by add_tracked_method(), del_tracked_method(), find_tracked_method(), and free_tracked_methods().

size of the tracked methods buffer

Definition at line 115 of file rtmpproto.c.

Referenced by add_tracked_method().


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

Generated on Fri Oct 26 02:50:16 2012 for FFmpeg by  doxygen 1.5.8