here is my code: https://github.com/wqhiOS/PictureInPicture-iOS16-BUG; and A video is included to demonstrate how to reproduce the issue
when I use PicutureInPicture to support live. I have a crash on iOS 16!only iOS 16.
I found that when the player uses live streaming and supports picture-in-picture. The main thread deadlock problem occurs.But using a non-live stream is no problem. Im sure this is a system bug on iOS 16.
The approximate reproduction steps are: when the player enters the background during playback, the picture-in-picture will appear normally, and then enter the app through the picture-in-picture. There is no problem at this time, push to another ViewController, and then back to player. At this time the thread will be stuck.