PreCallTestOptions

class PreCallTestOptions(val token: String, val samplingDuration: Int? = null, val audioOnly: Boolean = false, val videoTrack: CustomStreamTrack? = null, val audioTrack: CustomStreamTrack? = null, val videoConfig: PreCallVideoConfig? = null, val audioConfig: PreCallAudioConfig? = null)

Options for VideoSDK.runPreCallTest.

A null option is unset, which is not the same as its default: the test looks at which options were passed, and a contradictory pair fails the whole test with ERROR_PRECALL_INVALID_CONFIG before anything opens. Those pairs are videoTrack with videoConfig, audioTrack with audioConfig, and audioOnly with either video option.

Constructors

Link copied to clipboard
constructor(token: String, samplingDuration: Int? = null, audioOnly: Boolean = false, videoTrack: CustomStreamTrack? = null, audioTrack: CustomStreamTrack? = null, videoConfig: PreCallVideoConfig? = null, audioConfig: PreCallAudioConfig? = null)

Properties

Link copied to clipboard

how the test opens the microphone when no audioTrack is passed.

Link copied to clipboard
val audioOnly: Boolean = false

skip the camera and publish audio only. The result then has no PreCallTestResult.camera and no video figures.

Link copied to clipboard

a microphone track from VideoSDK.createMicrophoneAudioTrack to test instead of opening the microphone. It stays the app's.

Link copied to clipboard
val samplingDuration: Int? = null

how long stats are sampled, in ms. Defaults to 15 000; a value outside 10 000 – 120 000 fails with ERROR_PRECALL_INVALID_CONFIG.

Link copied to clipboard

auth token for the test's signalling. A blank one fails with ERROR_PRECALL_INVALID_TOKEN.

Link copied to clipboard

how the test opens the camera when no videoTrack is passed.

Link copied to clipboard

a camera track from VideoSDK.createCameraVideoTrack to test instead of opening the camera. It stays the app's: the test never stops it.