Skip to main content
Picture-in-Picture (PiP) allows the call video to continue playing in a floating window while users interact with other content on the page or other browser tabs.

Enable Picture-in-Picture

Enable PiP mode during a call:

Disable Picture-in-Picture

Return to the normal call view:

Browser Support

Picture-in-Picture support varies by browser:

Check PiP Support

Before enabling PiP, check if the browser supports it:

PiP Events

The SDK doesn’t provide specific PiP events, but you can listen to the browser’s native PiP events on the video element if needed:

User-Initiated PiP

Browsers typically require PiP to be triggered by a user gesture (click, tap). Wrap the enable call in a button handler:

Auto-PiP on Tab Switch

Some browsers support automatic PiP when switching tabs. This is a browser-level feature and may require user permission.

Styling Considerations

When PiP is active:
  • The main call container may appear empty or show a placeholder
  • Consider showing a message indicating the call is in PiP mode
  • Provide a button to exit PiP and return to the full view