Picture-in-Picture (PiP) mode allows users to continue a video call while using other apps. This feature is useful for multitasking, such as taking notes or browsing the web during a call.
- Sign up on VideoSDK and visit the API Keys section to get your API key and Secret key.
- Get familiarized with Token.
Before running the project, ensure you have:
- Flutter SDK installed (Install Flutter).
- Valid VideoSDK Account
- Clone the Repository
git clone https://github.com/videosdk-live/videosdk-flutter-pip-mode-example.git
cd videosdk-flutter-pip-mode-example- Install Dependencies
flutter pub get- Add VideoSDK Token
Update the token in the api.dart file:
String token = "Your VideoSDK token";- Run the App
for android
flutter runfor ios
cd ios
pod install
cd ..
flutter run- Launch the app on your device.
- Start a video call using the built-in UI.
- PiP mode activates automatically when you press the PiP button or send the app to the background.
- The video will shrink into a floating window, allowing you to multitask while keeping the call visible.
- Returning to the app will exit PiP mode and restore the full-screen view.