LocalVideoStats class
Inheritance
Object
PackClass
LocalVideoStats
Constructors
LocalVideoStats ({required float sentKBitrate , required int inputFrameRate , required int sentFrameRate , required int encoderOutputFrameRate , required int rendererOutputFrameRate , required int statsInterval , required float videoLossRate , required int rtt , required int encodedBitrate , required int encodedFrameWidth , required int encodedFrameHeight , required int encodedFrameCount , required VideoCodecType codecType , required bool isScreen , required int jitter , required VideoDenoiseMode videoDenoiseMode , dynamic android_internalStats , bool ? $disableInit })
LocalVideoStats.fromMap (Map <String , dynamic > map )
factory
Properties
$instance
→ dynamic
no setter inherited
codecType
↔ VideoCodecType
@brief For the encoding type of the video, please refer to VideoCodecType{@link #VideoCodecType-2}.
getter/setter pair
encodedBitrate
↔ int
@brief Video encoding bitrate in Kbps of the video stream with the highest resolution within the reference period.
getter/setter pair
encodedFrameCount
↔ int
@brief The total number of the video stream with the highest resolution within the reference period sent in the reference period.
getter/setter pair
encodedFrameHeight
↔ int
@brief Video encoding height in px of the video stream with the highest resolution within the reference period
getter/setter pair
encodedFrameWidth
↔ int
@brief Video encoding width in px of the video stream with the highest resolution within the reference period
getter/setter pair
encoderOutputFrameRate
↔ int
@brief Encoder-output frame rate in fps of the video stream with the highest resolution within the reference period
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter inherited
inputFrameRate
↔ int
@brief Sampling frame rate in fps of video capture during this reference period
getter/setter pair
isScreen
↔ bool
@brief Whether the media stream belongs to the user is a screen stream. You can know whether the current statistics come from mainstream or screen stream.
getter/setter pair
jitter
↔ int
@brief Video uplink network jitter in ms.
getter/setter pair
rendererOutputFrameRate
↔ int
@brief Local-rendering frame rate in fps during this reference period
getter/setter pair
rtt
↔ int
@brief Round-trip time in ms.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sentFrameRate
↔ int
@brief TX frame rate in fps of the video stream with the highest resolution within the reference period
getter/setter pair
sentKBitrate
↔ float
@brief TX bitrate in Kbps of the video stream with the highest resolution within the reference period
getter/setter pair
statsInterval
↔ int
@brief Reference period in ms.
This field is used to set the reference period for the callback, which is 2 s by default.
getter/setter pair
videoDenoiseMode
↔ VideoDenoiseMode
@hidden for internal use
@brief The current state of the video noise reduction mode of local video (0: off/1: on).
getter/setter pair
videoLossRate
↔ float
@brief Video packet loss rate. The video uplink packet loss rate in this reference period ranges from 0,1.
getter/setter pair
Methods
$createInstance (List args )
→ dynamic
Factory method for creating instances
override
$destroy ()
→ void
inherited
$init (List args )
→ void
inherited
findOverrideIndices (List args , List <List <int > > indicesList )
→ List <int >
查找重载参数下标列表
@desc android 构造函数存在重载
此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass (Function callback , dynamic nativeClass (), String methodName )
→ dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致
将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap ()
→ Map <String , dynamic >
toString ()
→ String
A string representation of this object.
inherited
transformToPlatformConstructorArgs (List args , List <int > indices , Map <String , dynamic > typeMap , Map <String , dynamic > enumMap , Map <String , dynamic > classMap , String platformVar )
→ List
实例化参数处理
将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance (dynamic instance )
→ void
inherited