Picture in Picture Disappears While Audio Continues

I've implemented picture in picture with the AVPictureInPictureController class. It works as long as the application is in focus. From the moment the application is pushed to the background, the picture in picture view fades out and disappears. The audio of the video continues to play in the background.


The application follows Apple's guidelines by enabling the correct background mode and configuring the audio session. The moment the application enters the background, the "will stop" and "did stop" delegate methods of the AVPictureInPictureControllerDelegate protocol are invoked, indicating that picture in picture is about to be stopped.


There are no logs that point to the root of the problem. Any help or pointers are much appreciated.

Replies

It appears the issue was caused by the Brightcove SDK. You can find more information on the Brightcove website.