iOS Picture In Picture Button Appearing in the top left of the video player

DEVELOPING APPS NATIVELY PAYS OFF GREATLY

Enabling the Fancy iOS Picture In Picture Video Player on Xamarin

The First Prototype
3 min readJan 6, 2021

Implementation

var audioSession = AVAudioSession.SharedInstance();
NSError nSError = new NSError();
audioSession.SetCategory(AVAudioSessionCategory.Playback);
audioSession.SetActive(true, AVAudioSessionSetActiveOptions.NotifyOthersOnDeactivation, out nSError);
Info.plist PIP Background mode selected
Entering the PIP view automatically creates a screen with this message
Swiping the video to the right hides the video

Behavior

The First Prototype
The First Prototype

Written by The First Prototype

Developers building things, on here to share knowledge. Featured blog for PlanetXamarin.com github.com/saamerm linkedin.com/in/saamer

No responses yet

Write a response