On iPhone: Find out what song is currently playing? (in the iPod music player)
Apple released access to the iPod Library in the iPhone SDK 3.0 and I’m wondering if it’s now possible to understand which song is currently playing? Title, Artist, Album suffices. Example: User opens an app and the app can know which song is playing in the background.
Has anyone had any experience with this?
Thanks a bunch!
- Remove border in navigationBar in swift
- Is it possible to change/set the alarm clock from a different application on the iPhone
- Rotate a UIView clockwise for an angle greater than 180 degrees
- Can I fetch details of the incoming call phone number in my applicaton?
- Core Data; Cocoa error 134100
- Can you use 3D Touch on widgets?
Solutions Collect From Internet About “On iPhone: Find out what song is currently playing? (in the iPod music player)”
MPMediaItem * song = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem]; NSString * title = [song valueForProperty:MPMediaItemPropertyTitle]; NSString * album = [song valueForProperty:MPMediaItemPropertyAlbumTitle]; NSString * artist = [song valueForProperty:MPMediaItemPropertyArtist];
- “Non-portable path to file ”File.h“; specified path differs in case from file name on disk” warning in bridging header after updating to Xcode 8.3
- prevent reflection (objc/runtime) on iOS
- How to resolve linking error – static lib iPhone
- Global import for Swift CocoaLumberjack
- How do I do a Fade/No transition between view controllers
- Where does xcode take application's Identifier from?
- Objective-C is @synthesize required or optional?
- How To Access Camera & Camera Roll Objective-C
- App is not asking for user permission after installation- getting state notDetermined – iOS 11
- How to let AVPlayer retrieve playlist secured by SSL?
- How do I get QuickLook to show offline files?
- Loading JS script for only iOS devices?
- Select row After UIPickerView is loaded
- Touches began in UITableViewController