setMirror

fun setMirror(mirror: Boolean)

This method can be used to mirror the rendered video horizontally.

When enabled, the video is flipped along the vertical axis. This is commonly used for the local participant's front camera preview so the view appears like a natural mirror, matching what the user expects to see.

Code Example:


// Mirror the local participant's video (front camera)
videoView.setMirror(true)

// Disable mirroring for remote participants
videoView.setMirror(false)

Parameters

mirror

true to mirror the video horizontally, false for normal rendering