https://github.com/chayanforyou/calling-app-pip-demo-ios
Picture-in-Picture (PIP) mode in a calling application iOS
https://github.com/chayanforyou/calling-app-pip-demo-ios
avkit avpictureinpicturecontroller avpictureinpictureviewcontroller ios picture-in-picture pip swift
Last synced: 21 days ago
JSON representation
Picture-in-Picture (PIP) mode in a calling application iOS
- Host: GitHub
- URL: https://github.com/chayanforyou/calling-app-pip-demo-ios
- Owner: chayanforyou
- Created: 2024-12-01T06:43:48.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-12-01T10:25:04.000Z (5 months ago)
- Last Synced: 2025-03-24T18:07:33.337Z (about 1 month ago)
- Topics: avkit, avpictureinpicturecontroller, avpictureinpictureviewcontroller, ios, picture-in-picture, pip, swift
- Language: Swift
- Homepage:
- Size: 209 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## iOS PictureInPicture Sample
This example demonstrates the implementation of Picture-in-Picture (PIP) mode in a calling application that uses WebRTC for VoIP functionality. The sample showcases how a video call continues seamlessly when the app switches to PIP mode. In the PIP window, the app provides action buttons to pause or resume the video stream, ensuring a smooth user experience.### The PiP (Picture-in-Picture) window offers versatile controls:
- Drag to reposition.
- Single-tap for options like full-screen toggle.
- Double-tap to switch between minimized and maximized sizes.
- Stash the window by dragging it to the screen's edge, and unstash by tapping or dragging it out.### Video Demo
https://github.com/user-attachments/assets/8109ef44-95cf-4baf-a856-a9765f07e416
### Resources
- [Adopting Picture in Picture for video calls](https://developer.apple.com/documentation/avkit/adopting-picture-in-picture-for-video-calls)
- [Accessing the camera while multitasking](https://developer.apple.com/documentation/avkit/accessing-the-camera-while-multitasking-on-ipad)