1. Background playback is done by adding Info.plist to UIBackgroundModes in audio for reference https://developer.apple.com/library/i...
2. "Even after double-clicking the home button, the music control bar on the left turns into the icon of Douban Radio." This is to register an object in your own program as a responder to the corresponding remote control message. When the user clicks prev, next, play/pause in the control bar, the program will receive the corresponding message. When receiving the message, you must control the playback accordingly.
Register the responder in the view controller:
3. Making the control bar display a title is another matter. You need to call the media center interface in the program to set the title and cover. Referencehttp://stackoverflow.com/questions/10...
4. Getting the album cover and title from ID3 is the fourth thing. .
1. Background playback is done by adding
Info.plist
toUIBackgroundModes
inaudio
for reference https://developer.apple.com/library/i...2. "Even after double-clicking the home button, the music control bar on the left turns into the icon of Douban Radio." This is to register an object in your own program as a responder to the corresponding remote control message. When the user clicks prev, next, play/pause in the control bar, the program will receive the corresponding message. When receiving the message, you must control the playback accordingly.
Register the responder in the view controller:
At the same time, the view controller needs to implement:
3. Making the control bar display a title is another matter. You need to call the media center interface in the program to set the title and cover. Referencehttp://stackoverflow.com/questions/10...
4. Getting the album cover and title from ID3 is the fourth thing. .