PreCallMediaReport

What one device — the camera or the microphone — did when the test opened it.

status is the verdict; error says why when it is false. The capture figures describe what the device actually delivered, which is not necessarily what the config asked for.

A device that passed its check hands you its track, even when the test was later stopped: that track is open and yours to CustomStreamTrack.stop or publish. A device that failed reports a null track and has already been released.

Properties

Link copied to clipboard

What the camera actually captured, e.g. "1280x720". Null for a microphone.

Link copied to clipboard

The codec the test published with, e.g. "VP8" or "opus".

Link copied to clipboard

Why this device failed — permission refused, camera in use, an unsupported profile. Null when status is true.

Link copied to clipboard
val fps: Int?

Captured frames per second. Null for a microphone, or when the camera did not report it.

Link copied to clipboard

True when the device opened and produced frames. False means error is set.

Link copied to clipboard

The track that was tested — the one you passed in, or the one the test opened. Null when the check failed. A track you passed in is never stopped by the SDK.

Functions

Link copied to clipboard
open override fun toString(): String