Skip to main content

Module types

Module types 

Source
Expand description

Core type definitions for librtmp2

This module contains all public types, enums, structs, and constants that mirror the C header include/librtmp2/types.h and related headers.

Structs§

AudioHeader
Parsed audio tag header.
AudioTag
FLV audio tag.
CapsExit
Capability negotiation struct.
Client
Opaque client handle
Conn
Opaque connection handle
ConnectInfo
Connect command information.
ErrorInfo
Error information struct.
FourCc
FourCC code for Enhanced RTMP.
FourCcList
A list of FourCC codes.
Frame
A parsed frame delivered via the on_frame callback.
HdrInfo
HDR color information.
Modex
ModEx extension.
Multitrack
Multitrack descriptor.
Reconnect
Reconnect request struct.
ResourceLimits
Per-connection and server-wide memory limits (Rust-only; not part of the C ABI).
ScriptTag
FLV script tag.
Server
Opaque server handle
ServerConfig
Server configuration struct.
Stream
Opaque stream handle
VideoFourCcInfoMap
Video FourCC info map.
VideoHeader
Parsed video tag header.
VideoTag
FLV video tag.

Enums§

AudioCodec
Audio codec identifiers.
ConnState
Connection state machine states.
ErrorCode
Error codes returned by librtmp2 functions.
FrameType
Frame type classification.
ModexType
ModEx type.
MultitrackType
Multitrack type.
VideoCodec
Video codec identifiers (legacy).

Constants§

ERTMP_AUDIO_PACKET_TYPE_CODED_FRAMES
ERTMP_AUDIO_PACKET_TYPE_METADATA
ERTMP_AUDIO_PACKET_TYPE_MULTICHANNEL
ERTMP_AUDIO_PACKET_TYPE_SEQUENCE_START
Enhanced RTMP v1 AudioPacketType
ERTMP_AUDIO_RATE_5500
Enhanced RTMP v1 AudioSampleRate (legacy)
ERTMP_AUDIO_RATE_11025
ERTMP_AUDIO_RATE_22050
ERTMP_AUDIO_RATE_44100
ERTMP_AUDIO_SAMPLE_8BIT
Enhanced RTMP v1 AudioSampleSize (legacy)
ERTMP_AUDIO_SAMPLE_16BIT
ERTMP_PACKET_TYPE_CODED_FRAMES
ERTMP_PACKET_TYPE_CODED_FRAMES_X
ERTMP_PACKET_TYPE_METADATA
ERTMP_PACKET_TYPE_MPEG2TS_SEQUENCE_START
ERTMP_PACKET_TYPE_SEQUENCE_END
ERTMP_PACKET_TYPE_SEQUENCE_START
Enhanced RTMP v1 VideoPacketType
MAX_FOURCCS
Maximum number of FourCC entries in a list.
VERSION_MAJOR
VERSION_MINOR
VERSION_PATCH
VERSION_STRING

Type Aliases§

OnCloseCb
on_close callback type
OnConnectCb
on_connect callback type
OnFrameCb
on_frame callback type
OnPlayCb
on_play callback type
OnPublishCb
on_publish callback type
OnSendDataCb
on_send_data callback type
Result
Result type used throughout the library.