How do I get my AVPlayer to play while app is in background?
UPDATE IOS 11.2 with Swift 4: Now if you are using AVPlayer to play music files you should also configure MPNowPlayingInfoCenter.default() to show now playing info on the lock screen. Below code will show now playing controls on the screen but it won’t be able to respond any commands. If you also want to controls … Read more