VideoTrackConstraints

data class VideoTrackConstraints(var width: Int? = null, var height: Int? = null, var frameRate: Int? = null, var aspectRatio: Double? = null, var facingMode: WebRtcMedia.FacingMode? = null, var resizeMode: WebRtcMedia.ResizeMode? = null)(source)

Constraints for video tracks.

Report a problem

See also

Constructors

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

Properties

Link copied to clipboard

The aspect ratio of the video.

Link copied to clipboard

The camera-facing mode.

Link copied to clipboard

The frame rate of the video.

Link copied to clipboard
var height: Int?

The height of the video in pixels.

Link copied to clipboard

The resize mode for the video. Not supported for Android.

Link copied to clipboard
var width: Int?

The width of the video in pixels.