artwork

Get iTunes Artwork for Current Song with ScriptingBridge

China☆狼群 提交于 2020-01-01 05:15:05
问题 I have been trying to figure out how to get the iTunes artwork for the currently playing song with scripting bridge. I have gotten to a point where it works for some songs, but for others, I get a SIGABRT. I'm not sure what the issue could be, so any help would be greatly appreciated. Here is what I have so far: iTunesApplication * iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"]; NSImage *songArtwork; iTunesTrack *current = [iTunes currentTrack]; iTunesArtwork

Get iTunes Artwork for Current Song with ScriptingBridge

拟墨画扇 提交于 2020-01-01 05:15:05
问题 I have been trying to figure out how to get the iTunes artwork for the currently playing song with scripting bridge. I have gotten to a point where it works for some songs, but for others, I get a SIGABRT. I'm not sure what the issue could be, so any help would be greatly appreciated. Here is what I have so far: iTunesApplication * iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"]; NSImage *songArtwork; iTunesTrack *current = [iTunes currentTrack]; iTunesArtwork

MPMediaItemArtwork is null while cover is available in iTunes

旧街凉风 提交于 2019-12-18 04:56:07
问题 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 changed in iOS 8? -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { AlbumCell *cell = [tableView dequeueReusableCellWithIdentifier:@"AlbumCell"]; MPMediaItemCollection *song = self.songsList[indexPath.row]; cell.albumName.text = [[song

Android + get Artworks + Google Music Beta

让人想犯罪 __ 提交于 2019-12-12 01:52:50
问题 I'm trying to get the artworks on a device that syncs mp3s with Google Music Beta . So I try the standard approach using a cursor to get all the album IDS and than for each of them the correspondent artwork: public void getAlbumIDS(){ Cursor cur = mContentResolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String [] {MediaStore.Audio.Media.ALBUM_ID}, null, null, null); startManagingCursor(cur); if (cur.getCount() > 0) { while (cur.moveToNext()) { int albumId = cur.getInt(cur

Get iTunes Artwork for Current Song with ScriptingBridge

六眼飞鱼酱① 提交于 2019-12-03 13:47:32
I have been trying to figure out how to get the iTunes artwork for the currently playing song with scripting bridge. I have gotten to a point where it works for some songs, but for others, I get a SIGABRT. I'm not sure what the issue could be, so any help would be greatly appreciated. Here is what I have so far: iTunesApplication * iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"]; NSImage *songArtwork; iTunesTrack *current = [iTunes currentTrack]; iTunesArtwork *artwork = (iTunesArtwork *)[[[current artworks] get] lastObject]; if(artwork != nil) songArtwork =

Is there any free unlimited album artwork search API service? [closed]

大城市里の小女人 提交于 2019-12-03 03:49:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Google's custom search API has a limitation up to 100 queries per day. That is far less than what I expected. I want to add that artwork-search function to my app. Thanks a lot. 回答1: How about Discogs, or Amazon or seeing what Cover Fetcher does? 回答2: Musicbrainz and the Internet Archive offer the Cover Art

Is there any free unlimited album artwork search API service? [closed]

两盒软妹~` 提交于 2019-12-02 17:14:50
Google's custom search API has a limitation up to 100 queries per day. That is far less than what I expected. I want to add that artwork-search function to my app. Thanks a lot. How about Discogs , or Amazon or seeing what Cover Fetcher does? Musicbrainz and the Internet Archive offer the Cover Art Archive but you do need to request using the album's MBID . Last.FM provides an API for getting art but you can't actually use it in publicly distributed applications. They said that the recording companies own the art and they aren't licensed to distribute it. Huh? Why the API then? I don't get it.

Error getting artwork for current song

点点圈 提交于 2019-12-01 07:03:53
问题 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. Eheh.) This method: - (void)handleNowPlayingItemChanged:(id)notification { MPMediaItem *item = self.musicPlayer.nowPlayingItem; CGSize albumCoverSize = self.albumCover.bounds.size; MPMediaItemArtwork *artwork = [item valueForProperty:MPMediaItemPropertyArtwork]; if (artwork) { self.albumCover.image =

MPMediaItemArtwork is null while cover is available in iTunes

大兔子大兔子 提交于 2019-11-29 07:23:45
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 changed in iOS 8? -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { AlbumCell *cell = [tableView dequeueReusableCellWithIdentifier:@"AlbumCell"]; MPMediaItemCollection *song = self.songsList[indexPath.row]; cell.albumName.text = [[song representativeItem] valueForProperty: MPMediaItemPropertyAlbumTitle]; cell.albumArtist.text = [[song representativeItem

Displaying Artwork for .MP3 file

梦想与她 提交于 2019-11-27 20:19:00
I am trying to currently display the album artwork for a locally stored .MP3 track in an ImageView. Does anyone know how to fetch this artwork in Swift in order to accomplish this? I have found this solution ( iOS AVFoundation: How do I fetch artwork from an mp3 file? ) but the code is written in Objective C. I simply want to grab the image embedded in my MP3 and display it in my ImageView. I've looked at the API documentation for the MPMediaItemArtwork and found an example that also accomplishes what I am trying to accomplish in Objective C as well here( http://www.codeitive.com/0zHjkUjUWX