I am currently using AVAudioPlayer to play foreground music, but when I press the home button, my application goes to the background and the music stops. I set the category for my AVAudioSession to AVAudioSessionCategoryPlayback and set the active to YES. In addition, I added a key audioto UIBackgroundModes in my Info.plist.
audio
Is there anything else I need to do to enable background music?
- , .
(Edit: " ". , , , "" , "", ).
Source: https://habr.com/ru/post/1758323/More articles:Emacs find-tag has problems with .el.gz files - emacsWhat does "| =" mean in Java? - javaString manipulation in C #: truncate a path using characters after each numeric value - stringNSURLConnection delegate methods fail - objective-cUsing undocumented classes in C ++ - c ++What source languages should my compiler use? - c ++Cake ACL component and ownership concept - authenticationHow can I export a user constraint in Grails? - grailsIs Powershell a mature enough technology for enterprise use? - powershellCannot call pointer to function returning pointer - cAll Articles