Framing

class Framing(val enabled: Boolean = false, val maxZoom: Float = 2.0f)

Auto-framing: the picture is cropped and zoomed to keep the subject centred, and it eases back to the full frame when there is no subject.

The output size never changes — the crop happens while the frame is sampled, so no participant sees the video resolution move.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, maxZoom: Float = 2.0f)

Properties

Link copied to clipboard
val enabled: Boolean = false

whether to frame the subject. false by default.

Link copied to clipboard
val maxZoom: Float = 2.0f

the tightest crop allowed, as a zoom factor. 2.0 by default, clamped to 1.0..4.0. At 1.0 the crop follows the subject but never zooms in.

Functions

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