I have confirmed this approach actually preventing the crash.
I decided to create and hold a singleton of AVPictureInPictureController and preventing its deallocation in the app's lifetime (will only be dealloc if the app itself is killed) and the crash did disappear in my case.
I am not sure if this is intended or not by Apple but for now this solution can help to prevent further crashes.
Thanks @SepCode !
Topic:
Media Technologies
SubTopic:
Video
Tags: