PreCallTestOptions class

Options for VideoSDK.runPreCallTest — the web SDK's runPreCallTest options, less onStatsChange, which is a separate argument.

A null option is unset, which is not the same as its default. The native core validates the combination and applies the defaults, exactly as on web: for example videoTrack together with videoConfig, or any video option with audioOnly, fails with ERROR_PRECALL_INVALID_CONFIG.

Constructors

PreCallTestOptions({required String token, int? samplingDuration, bool audioOnly = false, CustomStreamTrack? videoTrack, CustomStreamTrack? audioTrack, PreCallVideoConfig? videoConfig, PreCallAudioConfig? audioConfig})
Chooses which checks the test runs and how long it runs them.
const

Properties

audioConfig → PreCallAudioConfig?
How the test opens the microphone when no audioTrack is passed.
final
audioOnly → bool
Skip the camera and test audio only.
final
audioTrack → CustomStreamTrack?
A microphone track from VideoSDK.createMicrophoneAudioTrack to test instead of opening the microphone. It stays the app's.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplingDuration → int?
How long stats are sampled, in ms: 10 000–120 000. 15 000 when unset.
final
token → String
Auth token for the test's signaling. Required; an empty one fails with ERROR_PRECALL_INVALID_TOKEN.
final
videoConfig → PreCallVideoConfig?
How the test opens the camera when no videoTrack is passed.
final
videoTrack → CustomStreamTrack?
A camera track from VideoSDK.createCameraVideoTrack to test instead of opening the camera. It stays the app's: the test never stops it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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