Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
iOS 14 Play audio from video in background
@tungdangplus
That didn't work for me. In AppDelegate, I did:
func applicationWillResignActive(_ application: UIApplication) {
let viewController = window?.rootViewController as! ViewController
viewController.disconnectAVPlayer()
}
and then in ViewController, I did:
public func disconnectAVPlayer() {
playerViewController.player = nil
}