Module chunk

Source
Expand description

RTMP chunk protocol.

Modules§

error
Error types for chunk processing.
reader
Types and functions for reading RTMP chunks.
writer
Types and functions for writing RTMP chunks.

Constants§

CHUNK_STREAM_ID_COMMAND
The chunk stream ID for command messages is 3.
CHUNK_STREAM_ID_AUDIO
The chunk stream ID for audio messages is 4.
CHUNK_STREAM_ID_VIDEO
The chunk stream ID for video messages is 5.

Enums§

ChunkType
A chunk type represents the format of the chunk header.

Structs§

ChunkBasicHeader
A chunk basic header.
ChunkMessageHeader
A chunk message header.
Chunk
A chunk.

Constants§

CHUNK_SIZE
We bump our chunk size to 4096 bytes.
MAX_CHUNK_SIZE
Not apart of the spec but we have a limit on how big a chunk can be. This is the maximum chunk size we will accept. If the peer requests a chunk size bigger than this, we will close the connection.
INIT_CHUNK_SIZE
The default chunk size is 128 bytes. 5.4.1 “The maximum chunk size defaults to 128 bytes …”