mpmediaitem Questions
3
Solved
All methods I found to set MPMediaItemArtwork of MPNowPlayingInfoCenter are with local images.
MPMediaItemArtwork *albumArt = [[MPMediaItemArtwork alloc] initWithImage: [UIImage imageNamed:@"myima...
Milagrosmilam asked 9/6, 2014 at 23:50
1
I'm searching for a way to get the picture of an Artist through the MediaPlayer library.
I've searched in the Apple's Doc, but there is nothing about that.
The property "Artwork" refers to the alb...
Chord asked 19/9, 2014 at 15:27
3
Solved
I try to write Activator action for changing current song rating.
I now that we can read MPMediaItemPropertyRating property and get rating.
But how can we change it from app?
Zettazeugma asked 7/6, 2012 at 7:0
4
Solved
How can I search the iPod Library in the same manner as the iOS Music application? I want to make general queries that return results for each Artists, Albums, and Songs. For instance, if I search ...
Laddy asked 12/11, 2012 at 22:40
1
Solved
I was looking at Apple's documentation, and I cannot seem to find a way to get whether or not an MPMediaItem is a 'favorite' track or not. See screenshot below, with the pink heart.
How can one ge...
Blayze asked 16/2, 2016 at 21:49
3
Solved
i had tried the below code.
-(void)mediaItemToData : (MPMediaItem * ) curItem
{
NSURL *url = [curItem valueForProperty: MPMediaItemPropertyAssetURL];
AVURLAsset *songAsset = [AVURLAsset URLAss...
Bugloss asked 19/6, 2013 at 13:37
2
It seems that the property MPMediaItemPropertyAssetURL on a MPMediaItem returns null when the file is one that was from Apple Music and has been made "available offline".
On the other hand, items ...
Sewing asked 12/7, 2015 at 4:53
7
I would like to know if an MPMediaItem that represents a music track is for a Fairplay/DRM-protected item. Any way to do this?
Darceydarci asked 6/4, 2011 at 18:13
6
Solved
That's my Question =)
MPMediaQuery *artistQuery = [MPMediaQuery artistsQuery];
NSArray *songsByArtist = [artistQuery collections];
How can I get the number of albums of each artists of the MPMed...
Hola asked 15/5, 2012 at 8:33
2
Solved
I want to get the album art from a audiobook in the iPod library, But I do not understand how to use MPMediaItemPropertyArtwork
- (NSArray *)audiobooks
{
MPMediaPropertyPredicate *abPredicate =
...
Aught asked 25/8, 2013 at 8:49
0
I'm working on code that looks at the user's videos and passes them along to AVPlayer by way of an AVPlayerItem which takes a URL.
To get all the videos on an iOS device, you can do:
let videoNum...
Benito asked 7/6, 2017 at 1:38
1
I have a video player that can play from the iOS command center and lock screen. When I toggle a play/pause button in my app, it should update the play/pause button in the command center (MPRemoteC...
Asterism asked 7/4, 2017 at 15:54
3
Solved
I have a query regarding Music Files.
I want to select 1/more Music files from the Music Library of iPhone/iTouch/iPad and Save in my Documents Folder or Send it to Server.
I roughly went through...
Mohsen asked 6/7, 2012 at 15:16
1
How to convert the iPod library to NSData.
The url is:
ipod-library://item/item.mp3?id=1258203422631791096
Getting error but, I can play the song by using AVPlayer.
NSURL *url = [curItem val...
Hazy asked 18/4, 2016 at 12:37
5
I have the following code to get the UIImage from MPMediaItemPropertyArtWork to display the coverArt in my view. I get a non-NULL artwork from the mediaItem, however, when I try to extract the UIIm...
Headline asked 7/7, 2011 at 1:18
4
Solved
How unique is MPMediaItemPropertyPersistentID? Will it even work when synching the list of IDs to another device connected to the same iTunes Account?
I want to implement a iCloud synchronized pla...
Cherey asked 30/8, 2012 at 11:8
0
I am testing my app with Apple Music, my app grabs the current playing song and displays relevant information on it.
One of the steps is to get the album artwork, however I find that when the song...
Syrinx asked 1/7, 2015 at 19:56
3
The UIImage "image" is always empty ("null") though the cover is shown in the music app by apple.
in iOS 7 it works fine, but with iOS 8 I get no cover.
Whats wrong with my code, or what has chang...
Talebearer asked 23/9, 2014 at 15:10
1
I am builting an iOS app that streams shoutcast audio.
I want to display a custom image on the device lockscreen (no matter the song, I want the same image to be displayed).
The code bellow shows...
Cling asked 27/3, 2014 at 18:37
2
Solved
I am currently developing an app that shows what artist, track and album art you're listening to in the Music player. All is going well apart from when I play a song with no artwork I want to be ab...
Slat asked 19/10, 2011 at 16:57
2
Solved
I have a simple question but I can't find the right answer. I have a song url saved to my database in a path like this.
aSound.path = [[item valueForProperty: MPMediaItemPropertyAssetURL] absoluteS...
Redmond asked 27/3, 2012 at 13:30
2
The following block of code results in the error message:
2013-09-13 15:27:08.449 Mobile[746:5603] {MediaLibrary} Rolling back transaction.
MPMediaQuery *mediaQuery = [MPMediaQuery songsQuery];
N...
Clamworm asked 13/9, 2013 at 19:31
1
Solved
I have retrieved all musics and videos from my iPhone device. I am now stuck in saving those in to my application, i am unable to get the raw data out of the file. Can any one help me to find a sol...
Marquita asked 30/10, 2012 at 7:57
2
Solved
Is there any way I can check if a mediaItem fetched from iPhone's music library represents a iCloud Item?
I know MPMediaItemPropertyAssetURL property of a media Item is nil for both DRM Protected...
Darin asked 19/7, 2012 at 13:38
2
Solved
Grabbing album art for current song and using it to change a certain imageView.image generates an error, but no longer crashes. (It did before because I left out the if (!artwork) error handling. E...
Shrovetide asked 14/6, 2011 at 15:29
1 Next >
© 2022 - 2024 — McMap. All rights reserved.