Expand description
RTMP protocol constants
Reference: Adobe RTMP Specification (December 2012) Reference: RFC 7425 - Adobe’s RTMP (Informational)
Constants§
- BANDWIDTH_
LIMIT_ DYNAMIC - Dynamic - can be hard or soft depending on prior state
- BANDWIDTH_
LIMIT_ HARD - Hard limit - peer should limit output to this bandwidth
- BANDWIDTH_
LIMIT_ SOFT - Soft limit - peer can exceed if it has excess bandwidth
- CHUNK_
FMT_ 0 - Type 0: Full header (11 bytes) - timestamp, length, type, stream ID
- CHUNK_
FMT_ 1 - Type 1: No stream ID (7 bytes) - timestamp delta, length, type
- CHUNK_
FMT_ 2 - Type 2: No stream ID, length, type (3 bytes) - timestamp delta only
- CHUNK_
FMT_ 3 - Type 3: No header (0 bytes) - use previous chunk’s values
- CMD_
CALL - CMD_
CLOSE - CMD_
CONNECT - CMD_
CREATE_ STREAM - CMD_
DELETE_ STREAM - CMD_
ERROR - CMD_
FC_ PUBLISH - CMD_
FC_ UNPUBLISH - CMD_
ON_ FC_ PUBLISH - CMD_
ON_ FC_ UNPUBLISH - CMD_
ON_ METADATA - CMD_
ON_ STATUS - Status notification
- CMD_
PAUSE - CMD_
PLAY - CMD_
PLAY2 - CMD_
PUBLISH - CMD_
RECEIVE_ AUDIO - CMD_
RECEIVE_ VIDEO - CMD_
RELEASE_ STREAM - CMD_
RESULT - Internal response commands
- CMD_
SEEK - CMD_
SET_ DATA_ FRAME - CSID_
AUDIO - Audio data
- CSID_
COMMAND - Command messages (connect, createStream, etc.)
- CSID_
PROTOCOL_ CONTROL - Protocol control messages (Set Chunk Size, Abort, etc.)
- CSID_
VIDEO - Video data
- DEFAULT_
BUFFER_ LENGTH - Default buffer length in milliseconds
- DEFAULT_
CHUNK_ SIZE - Default chunk size (per RTMP spec)
- DEFAULT_
PEER_ BANDWIDTH - Default peer bandwidth (2.5 MB)
- DEFAULT_
WINDOW_ ACK_ SIZE - Default window acknowledgement size (2.5 MB)
- EXTENDED_
TIMESTAMP_ THRESHOLD - Extended timestamp threshold Timestamps >= this value require extended timestamp field
- HANDSHAKE_
SIZE - Handshake packet sizes
- MAX_
CHUNK_ SIZE - Maximum chunk size allowed
- MAX_
MESSAGE_ SIZE - Maximum message size (sanity limit)
- MSG_
ABORT - Abort Message (2) - protocol control
- MSG_
ACKNOWLEDGEMENT - Acknowledgement (3) - protocol control
- MSG_
AGGREGATE - Aggregate Message (22)
- MSG_
AUDIO - Audio Message (8)
- MSG_
COMMAND_ AMF0 - AMF0 Command Message (20) - connect, play, publish, etc.
- MSG_
COMMAND_ AMF3 - AMF3 Command Message (17)
- MSG_
DATA_ AMF0 - AMF0 Data Message (18) - @setDataFrame, onMetaData
- MSG_
DATA_ AMF3 - AMF3 Data Message (15) - @setDataFrame with AMF3
- MSG_
SET_ CHUNK_ SIZE - Set Chunk Size (1) - protocol control
- MSG_
SET_ PEER_ BANDWIDTH - Set Peer Bandwidth (6) - protocol control
- MSG_
SHARED_ OBJECT_ AMF0 - AMF0 Shared Object (19)
- MSG_
SHARED_ OBJECT_ AMF3 - AMF3 Shared Object (16)
- MSG_
USER_ CONTROL - User Control Message (4) - protocol control
- MSG_
VIDEO - Video Message (9)
- MSG_
WINDOW_ ACK_ SIZE - Window Acknowledgement Size (5) - protocol control
- NC_
CONNECT_ CLOSED - NC_
CONNECT_ FAILED - NC_
CONNECT_ REJECTED - NC_
CONNECT_ SUCCESS - NS_
PAUSE_ NOTIFY - NS_
PLAY_ RESET - NS_
PLAY_ START - NS_
PLAY_ STOP - NS_
PLAY_ STREAM_ NOT_ FOUND - NS_
PUBLISH_ BAD_ NAME - NS_
PUBLISH_ START - NS_
UNPAUSE_ NOTIFY - RECOMMENDED_
CHUNK_ SIZE - Recommended chunk size for efficiency (reduces header overhead)
- RTMP_
PORT - Default RTMP port
- RTMP_
VERSION - RTMP version number (always 3 for standard RTMP)
- UC_
PING_ REQUEST - Ping Request - server pings client
- UC_
PING_ RESPONSE - Ping Response - client responds to ping
- UC_
SET_ BUFFER_ LENGTH - Set Buffer Length - client tells server buffer size
- UC_
STREAM_ BEGIN - Stream Begin - server sends when stream becomes functional
- UC_
STREAM_ DRY - Stream Dry - no more data available
- UC_
STREAM_ EOF - Stream EOF - server sends when playback ends
- UC_
STREAM_ IS_ RECORDED - Stream Is Recorded - stream is recorded