WebRtcMedia

An object containing Media Capture abstractions. Media Capturing is platform- and implementation-specific, so here we encapsulate only the essential parts for the WebRtc communication. The links describe the standard browser API, though some platforms could have different behaviors.

Types

Link copied to clipboard

Interface representing an audio track.

Link copied to clipboard
data class AudioTrackConstraints(val volume: Double? = null, val sampleRate: Int? = null, val sampleSize: Int? = null, val echoCancellation: Boolean? = null, val autoGainControl: Boolean? = null, val noiseSuppression: Boolean? = null, val latency: Double? = null, val channelCount: Int? = null)

Constraints for audio tracks.

Link copied to clipboard
class DeviceException(message: String?, cause: Throwable? = null) : RuntimeException

Exception thrown when there is an issue with a media device.

Link copied to clipboard

Enum representing the facing mode of a camera.

Link copied to clipboard

Exception thrown when media permissions are not granted.

Link copied to clipboard

Enum representing the resize mode for video tracks.

Link copied to clipboard
interface Track : AutoCloseable

Interface representing a media track.

Link copied to clipboard

Enum representing the type of media track.

Link copied to clipboard

Interface representing a video track.

Link copied to clipboard
data class VideoTrackConstraints(val width: Int? = null, val height: Int? = null, val frameRate: Int? = null, val aspectRatio: Double? = null, val facingMode: WebRtcMedia.FacingMode? = null, val resizeMode: WebRtcMedia.ResizeMode? = null)

Constraints for video tracks.