An open API service indexing awesome lists of open source software.

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

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)