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§
- Chunk
Type - A chunk type represents the format of the chunk header.
Structs§
- Chunk
Basic Header - A chunk basic header.
- Chunk
Message Header - 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 …”