TRTCSpeedTestParams class

测速参数

您可以在用户进入房间前通过 startSpeedTest 接口测试网速(注意:请不要在通话中调用)。

Constructors

TRTCSpeedTestParams({required int sdkAppId, required String userId, required String userSig, int expectedUpBandwidth = 0, int expectedDownBandwidth = 0, TRTCSpeedTestScene scene = TRTCSpeedTestScene.delayTesting})

Properties

expectedDownBandwidth ↔ int
预期的下行带宽(kbps,取值范围: 10 ~ 5000,为 0 时不测试)。
getter/setter pair
expectedUpBandwidth ↔ int
预期的上行带宽(kbps,取值范围: 10 ~ 5000,为 0 时不测试)。
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scene ↔ TRTCSpeedTestScene
测速场景。
getter/setter pair
sdkAppId ↔ int
应用标识,详情请参见 TRTCParams 中的相关说明。
getter/setter pair
userId ↔ String
用户标识,详情请参见 TRTCParams 中的相关说明。
getter/setter pair
userSig ↔ String
用户签名,详情请参见 TRTCParams 中的相关说明。
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() → String
A string representation of this object.
inherited

Operators

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