LocalAudioStats class Null safety

本地音频流统计信息,统计周期为 2s

本地用户发布音频流成功后,SDK 会周期性地通过 RTCRoomEventHandler.onLocalStreamStats 通知用户发布的音频流在此次统计周期内的发送状况,此数据结构即为回调给用户的参数类型。

Constructors

LocalAudioStats({double? audioLossRate, double? sentKBitrate, int? recordSampleRate, int? statsInterval, int? rtt, int? numChannels, int? sentSampleRate})
LocalAudioStats.fromMap(Map map)
factory

Properties

audioLossRate ↔ double?
音频丢包率 [...]
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
numChannels ↔ int?
音频声道数
read / write
recordSampleRate ↔ int?
采集采样率 [...]
read / write
rtt ↔ int?
往返时延,单位为 ms
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
sentKBitrate ↔ double?
发送码率 [...]
read / write
sentSampleRate ↔ int?
音频发送采样率 [...]
read / write
statsInterval ↔ int?
统计间隔 [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited