GitHub

Source

useFacingMode

Try to determine the facingMode of a local participant video track.

Import

import { useFacingMode } from "@livekit/components-react";

Remarks

Works only on local video tracks.

Properties

trackReferenceTrackReferenceOrPlaceholder

Returns

"user" | "environment" | "left" | "right" | "undefined";