MediaSFU Shared
    Preparing search index...

    Function flipCamera

    • Flip between the front and rear cameras.

      This toggles — the SDK's switchVideoAlt swaps whichever facing mode is current and takes no target, so there is no way to ask for "front" specifically. Use switchCamera with a deviceId when you need to land on a particular camera; use this on mobile, where device ids are unstable across sessions but the flip gesture is what users expect.

      Parameters

      Returns Promise<HeadlessActionResult>