Fishjam Mobile SDK - v0.24.0
    Preparing search index...
    PipContainerView: ForwardRefExoticComponent<
        PipContainerViewProps & RefAttributes<PipContainerViewRef>,
    > = ...

    A view component for Picture-in-Picture functionality with split-screen layout.

    Automatically displays:

    • Primary view (left): Local camera track or placeholder text
    • Secondary view (right): Remote track with active VAD (voice activity) or placeholder text

    Use a ref to call methods on this component:

    const pipRef = useRef<PipContainerViewRef>(null);

    // Start PiP manually (if startAutomatically is false)
    await pipRef.current?.startPictureInPicture();

    // Stop PiP manually
    await pipRef.current?.stopPictureInPicture();

    Whether to start PiP automatically when app goes to background (default: true)

    Whether to stop PiP automatically when app comes to foreground (default: true)

    Whether to allow camera to continue running in PiP mode (default: false, iOS only)

    Text to display when local camera is unavailable (default: "No camera")

    Text to display when no remote speaker is active (default: "No active speaker")