Const
A view component for Picture-in-Picture functionality with split-screen layout.
Automatically displays:
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 manuallyawait pipRef.current?.stopPictureInPicture(); Copy
const pipRef = useRef<PipContainerViewRef>(null);// Start PiP manually (if startAutomatically is false)await pipRef.current?.startPictureInPicture();// Stop PiP manuallyawait 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")
A view component for Picture-in-Picture functionality with split-screen layout.
Automatically displays:
Use a ref to call methods on this component: