EchoTestConfig class

Inheritance
  • Object
  • PackClass
  • EchoTestConfig

Constructors

EchoTestConfig({required dynamic view, required String roomId, required String userId, required String token, required bool enableAudio, required bool enableVideo, required int audioReportInterval, bool? $disableInit})
EchoTestConfig.fromMap(Map<String, dynamic> map)
factory

Properties

$instance → dynamic
no setterinherited
audioReportInterval int
@brief Volume prompt interval in ms, the default value is 100.
- <= 0: Turn off prompt - (0,100] Invalid interval value, and will be automatically reset to 100ms. - > 100: the actual value of interval
getter/setter pair
enableAudio bool
@brief Whether to test audio. The device to be tested is the default audio device.
- true: Yes - If you use internal capture, the device microphone will automatically turn on and onLocalAudioPropertiesReport will be triggered when the value of audioReportInterval is set to greater than 0, from which you can judge the working status of the microphone. - If you choose custom capture, you also need to call pushExternalAudioFrame{@link #RTCEngine#pushExternalAudioFrame} to push the captured audio to the SDK. - false: No
getter/setter pair
enableVideo bool
@brief Whether to test video. If you are using a desktop PC, the device to be tested is by default the first video device in the list.
- true: Yes - If you use internal capture, the device camera will automatically turn on. - If you choose custom capture, you also need to call pushExternalVideoFrame{@link #RTCEngine#pushExternalVideoFrame} to push the captured video to the SDK. - false: No @note The video is published with fixed parameters: resolution 640px × 360px, frame rate 15fps.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
roomId String
@brief ID of the room that the tested user will join.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
@brief Token used for authenticating users when they enter the room.
getter/setter pair
userId String
@brief User ID for testing
getter/setter pair
view ↔ dynamic
@brief View for rendering received video
getter/setter pair

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
override
$destroy() → void
inherited
$init(List args) → void
inherited
android_getAudioReportInterval() Future<int?>
@platform android
android_getEchoEnabledAudio() Future<bool?>
@platform android
android_getEchoEnabledVideo() Future<bool?>
@platform android
android_getEchoRenderView() Future
@platform android
android_getEchoRoomId() Future<string?>
@platform android
android_getEchoToken() Future<string?>
@platform android
android_getEchoUid() Future<string?>
@platform android
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

Operators

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

Static Methods

deepPackedMapValues(Map<String, dynamic> map) → dynamic
mapMemberToConstructorParams(Map json) Map<String, dynamic>