As of iOS 5 we have access to MPNowPlayingInfoCenter
to display info in the lockscreen and in the multimedia controls on the multitasking bar. I have an app that plays local audio files. I want to display info like the artist's name, the album and the artwork on the lockscreen with MPNowPlayingInfoCenter
, but the only way to do this (As far as I know) is to use MPMusicPlayerController
and get nowPlayingItem
... The problem is that MPMusicPlayerController
is used to play iPod Music only, and not locally stored files. Is there a way around this in iOS 5?
相关问题
- Can we recover audio from MFCC coefficients?
- CALayer - backgroundColor flipped?
- Is there a way to play audio on a mobile browser w
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- Android Visualizer class throwing runtime exceptio
You can create your own NSDictionary and supply that to the MPNowPlayingInfoCenter.