albumart

Get album artwork from MP3 file/ID3 tag

为君一笑 提交于 2019-11-30 17:33:04
问题 I'm trying to get the album artwork from a MP3 file. In this case I use AVAudioPlayer to play the file. Here's the code that I thought would get the album artwork: MPMusicPlayerController *controller = [MPMusicPlayerController applicationMusicPlayer]; MPMediaItem *current = controller.nowPlayingItem; MPMediaItemArtwork *artwork = [current valueForProperty:MPMediaItemPropertyArtwork]; UIImage *artwork2 = [artwork imageWithSize:artwork.bounds.size]; [artworkView setImage:artwork2]; However

how to fetch the details of the audio file in iPhone

让人想犯罪 __ 提交于 2019-11-30 11:40:17
问题 I made the custom player by using AVAudioPlayer. Now, I want to fetch the details of the audio file such as artist name,album name,etc which is added in the resource folder. MPMusicPlayer provides the API for fetching the details but its using iPod library and its not taking the resource from sandbox of application. So, MPMusicPlayer is not going to work in that scenario. So, how can we fetch the details of audio file in iPhone. 回答1: You can get this information through the AudioToolbox

Download album art from internet in an android application

允我心安 提交于 2019-11-30 10:04:33
I know the artist and trackname for a song, but I am unsure of what service or how to download album art for the track. I believe iTunes and Amazon both offer services but I am unsure of how to integrate these services, any links or suggestions are appreciated. Jacob Ewald To use Amazon you'll need to sign up as a developer for their public web services. Product Advertising API This is mainly just to get the access key that you'll need for making your calls to their web service API. You'll need to do a product search using the artist and album name, this will return an ASIN number. Once you

how to fetch the details of the audio file in iPhone

早过忘川 提交于 2019-11-30 01:36:45
I made the custom player by using AVAudioPlayer. Now, I want to fetch the details of the audio file such as artist name,album name,etc which is added in the resource folder. MPMusicPlayer provides the API for fetching the details but its using iPod library and its not taking the resource from sandbox of application. So, MPMusicPlayer is not going to work in that scenario. So, how can we fetch the details of audio file in iPhone. You can get this information through the AudioToolbox.framework . The AudioToolbox.framework is a C API, so I wrote an Objective-C wrapper for it: ID3Tag .h:

Download album art from internet in an android application

笑着哭i 提交于 2019-11-29 10:34:58
问题 I know the artist and trackname for a song, but I am unsure of what service or how to download album art for the track. I believe iTunes and Amazon both offer services but I am unsure of how to integrate these services, any links or suggestions are appreciated. 回答1: To use Amazon you'll need to sign up as a developer for their public web services. Product Advertising API This is mainly just to get the access key that you'll need for making your calls to their web service API. You'll need to

Get Album Art With Album Name Android

跟風遠走 提交于 2019-11-28 05:08:59
I want to display album art with album name in listview. But i am not getting the way to display album art. I have tried from cover art on android . Here is my Code : Cursor cursor = managedQuery(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, null, null, null, null); if (cursor == null) { //Query Failed , Handle error. } else if (!cursor.moveToFirst()) { //No media on the device. } else { int titleColumn = cursor.getColumnIndex(android.provider.MediaStore.Audio.Albums.ALBUM_ART); int id = cursor.getColumnIndex(android.provider.MediaStore.Audio.Albums.ALBUM_ID); //here value i m getting -1 . for

How do I get Album Thumbnails in Android?

六月ゝ 毕业季﹏ 提交于 2019-11-27 19:33:47
I have a list of albums which I got using this: private List<Album> getAlbums() { Cursor cur = managedQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, null); List<Album> albums = new ArrayList<Album>(); if (cur.moveToFirst()) { do { int albumIdIndex = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID); int albumIndex = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM); int artistIndex = cur.getColumnIndex(MediaStore.Audio.Media.ARTIST); int albumId = cur.getInt(albumIdIndex); String name = cur.getString(albumIndex); String artist = cur.getString(artistIndex); LogUtil.i(TAG,

How do you embed album art into an MP3 using Python?

筅森魡賤 提交于 2019-11-27 10:53:08
I've been using mutagen for reading and writing MP3 tags, but I want to be able to embed album art directly into the file. Here is how to add example.png as album cover into example.mp3 with mutagen: from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, error audio = MP3('example.mp3', ID3=ID3) # add ID3 tag if it doesn't exist try: audio.add_tags() except error: pass audio.tags.add( APIC( encoding=3, # 3 is for utf-8 mime='image/png', # image/jpeg or image/png type=3, # 3 is for the cover image desc=u'Cover', data=open('example.png').read() ) ) audio.save() I've used the eyeD3 module

How do I get Album Thumbnails in Android?

孤街醉人 提交于 2019-11-26 19:55:25
问题 I have a list of albums which I got using this: private List<Album> getAlbums() { Cursor cur = managedQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null, null); List<Album> albums = new ArrayList<Album>(); if (cur.moveToFirst()) { do { int albumIdIndex = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID); int albumIndex = cur.getColumnIndex(MediaStore.Audio.Media.ALBUM); int artistIndex = cur.getColumnIndex(MediaStore.Audio.Media.ARTIST); int albumId = cur.getInt

How do you embed album art into an MP3 using Python?

拥有回忆 提交于 2019-11-26 17:58:23
问题 I've been using mutagen for reading and writing MP3 tags, but I want to be able to embed album art directly into the file. 回答1: Here is how to add example.png as album cover into example.mp3 with mutagen: from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, error audio = MP3('example.mp3', ID3=ID3) # add ID3 tag if it doesn't exist try: audio.add_tags() except error: pass audio.tags.add( APIC( encoding=3, # 3 is for utf-8 mime='image/png', # image/jpeg or image/png type=3, # 3 is