RemoteStreamStats class Null safety

用户订阅的远端音/视频流统计信息以及网络状况,统计周期为 2s

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

Constructors

RemoteStreamStats({String? uid, RemoteAudioStats? audioStats, RemoteVideoStats? videoStats, bool? isScreen})
RemoteStreamStats.fromMap(Map map)
factory

Properties

audioStats ↔ RemoteAudioStats?
远端音频流的统计信息
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
isScreen ↔ bool?
所属用户的媒体流是否为屏幕流 [...]
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uid ↔ String?
用户 ID [...]
read / write
videoStats ↔ RemoteVideoStats?
远端视频流的统计信息
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