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.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:| Browser | Support | Notes |
|---|---|---|
| Chrome | ✅ Full support | Chrome 70+ |
| Edge | ✅ Full support | Chromium-based |
| Safari | ✅ Full support | Safari 13.1+ |
| Firefox | ⚠️ Limited | Behind flag in some versions |
| Opera | ✅ Full support | Opera 57+ |
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