Skip to main content
All info classes are immutable dataclass(frozen=True) objects. What you get is a snapshot, and modifying it doesn’t affect the SDK’s internal state. For media frame types (AudioFrame / VideoFrame / AudioFormat), see Audio and video data.

Info classes

UserInfo

TrackInfo

ChannelInfo

ConnectionQuality

Uplink and downlink network quality, updated about once per second. QualitySample:

ActiveSpeaker

LayerSwitched

CustomMsg

An in-channel custom message, sent by your backend through Server API · Send a custom message. The client SDK only receives messages and doesn’t send them.

Enums

TrackKind

AUDIO = 0, VIDEO = 1.

Codec

H264, H265, VP8, VP9, AV1, OPUS, AAC.

DeviceType

WINDOWS(1), ANDROID(2), IOS(3), LINUX(4), MACOS(5), WEBRTC(6), XCX(7, WeChat Mini Program), AGENTS(80, server-side agent—the identity this SDK joins with). Other values are kept as-is as int.

ConnectionState

CONNECTING(0), CONNECTED(1), DISCONNECTED(2), RECONNECTING(3).

DisconnectReason


Constants

Used when subscribing to the channel’s composite stream: