When I open Background Mode in Xcode and back to home screen, The Picture In Picture will disappear quickly.
And when i annotation this line code,it works
Please fix, thanks
/**
detach player UI to keep audio playing in background
*/
func applicationDidEnterBackground(_ application: UIApplication) {
// self.playerViewController?.player = nil
}
When I open Background Mode in Xcode and back to home screen, The Picture In Picture will disappear quickly. And when i annotation this line code,it works Please fix, thanks