LocalVideoStats class Null safety
本地视频流统计信息,统计周期为 2s
本地用户发布视频流成功后,SDK 会周期性地通过 RTCRoomEventHandler.onLocalStreamStats 通知用户发布的视频流在此次统计周期内的发送状况,此数据结构即为回调给用户的参数类型。
Constructors
- LocalVideoStats({double? sentKBitrate, int? inputFrameRate, int? sentFrameRate, int? encoderOutputFrameRate, int? renderOutputFrameRate, int? statsInterval, double? videoLossRate, int? rtt, int? encodedBitrate, int? encodedFrameWidth, int? encodedFrameHeight, int? encodedFrameCount, int? codecType, bool? isScreen})
- LocalVideoStats.fromMap(Map map)
-
factory
Properties
- codecType ↔ int?
-
视频的编码类型
read / write
- encodedBitrate ↔ int?
-
视频编码码率 [...]
read / write
- encodedFrameCount ↔ int?
-
此次统计周期内实际发送的分辨率最大的视频流的发送的视频帧总数
read / write
- encodedFrameHeight ↔ int?
-
实际发送的分辨率最大的视频流的视频编码高度,单位为 px
read / write
- encodedFrameWidth ↔ int?
-
实际发送的分辨率最大的视频流的视频编码宽度,单位为 px
read / write
- encoderOutputFrameRate ↔ int?
-
编码器输出帧率 [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- inputFrameRate ↔ int?
-
采集帧率 [...]
read / write
- isScreen ↔ bool?
-
所属用户的媒体流是否为屏幕流 [...]
read / write
- renderOutputFrameRate ↔ int?
-
本地渲染帧率 [...]
read / write
- rtt ↔ int?
-
往返时延,单位为 ms
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sentFrameRate ↔ int?
-
发送帧率 [...]
read / write
- sentKBitrate ↔ double?
-
发送码率 [...]
read / write
- statsInterval ↔ int?
-
统计间隔,默认为 2000ms。 [...]
read / write
- videoLossRate ↔ double?
-
视频丢包率 [...]
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