FFmpeg
Data Fields
RTMPPacket Struct Reference

structure for holding RTMP packets More...

#include <rtmppkt.h>

Data Fields

int channel_id
 RTMP channel ID (nothing to do with audio/video channels though) More...
 
RTMPPacketType type
 packet payload type More...
 
uint32_t timestamp
 packet full timestamp More...
 
uint32_t ts_field
 24-bit timestamp or increment to the previous one, in milliseconds (latter only for media packets). Clipped to a maximum of 0xFFFFFF, indicating an extended timestamp field. More...
 
uint32_t extra
 probably an additional channel ID used during streaming data More...
 
uint8_t * data
 packet payload More...
 
int size
 packet payload size More...
 
int offset
 amount of data read so far More...
 
int read
 amount read, including headers More...
 

Detailed Description

structure for holding RTMP packets

Definition at line 77 of file rtmppkt.h.

Field Documentation

◆ channel_id

int RTMPPacket::channel_id

RTMP channel ID (nothing to do with audio/video channels though)

Definition at line 78 of file rtmppkt.h.

Referenced by ff_rtmp_packet_write(), rtmp_packet_read_one_chunk(), and rtmp_write().

◆ type

RTMPPacketType RTMPPacket::type

packet payload type

Definition at line 79 of file rtmppkt.h.

Referenced by ff_rtmp_packet_write(), get_packet(), rtmp_packet_read_one_chunk(), and rtmp_write().

◆ timestamp

uint32_t RTMPPacket::timestamp

packet full timestamp

Definition at line 80 of file rtmppkt.h.

Referenced by ff_rtmp_packet_write(), gen_pong(), get_packet(), and rtmp_packet_read_one_chunk().

◆ ts_field

uint32_t RTMPPacket::ts_field

24-bit timestamp or increment to the previous one, in milliseconds (latter only for media packets). Clipped to a maximum of 0xFFFFFF, indicating an extended timestamp field.

Definition at line 81 of file rtmppkt.h.

Referenced by ff_rtmp_packet_write(), and rtmp_packet_read_one_chunk().

◆ extra

uint32_t RTMPPacket::extra

probably an additional channel ID used during streaming data

Definition at line 82 of file rtmppkt.h.

Referenced by ff_rtmp_packet_write(), rtmp_packet_read_one_chunk(), rtmp_write(), and write_status().

◆ data

uint8_t* RTMPPacket::data

packet payload

Definition at line 83 of file rtmppkt.h.

Referenced by gen_pong(), rtmp_packet_read_one_chunk(), rtmp_write(), send_invoke_response(), write_begin(), and write_status().

◆ size

int RTMPPacket::size

◆ offset

int RTMPPacket::offset

amount of data read so far

Definition at line 85 of file rtmppkt.h.

Referenced by rtmp_packet_read_one_chunk().

◆ read

int RTMPPacket::read

amount read, including headers

Definition at line 86 of file rtmppkt.h.

Referenced by rtmp_packet_read_one_chunk().


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