Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

read id3 tags from mp3 using javascript

I know this has been asked here before but my conditions are a little different. I am making a chrome app so i have access to all the latest JavaScript file apis it supports without worrying about compatibility. More over i would really like to do this my self.. ie without any library. A tutorial or a guide will do. After all how difficult can it really be?

Basically i have mp3's that user adds and i want to be able to read most basic information like artist and Album (actually, just these two but others wont do any harm).

I believe i have the idea of what id3 tag is and how can the info be read. I just have to see it in action just once. Thanks

like image 293
Achshar Avatar asked Jun 13 '11 15:06

Achshar


People also ask

How do I read an ID3 tag in an MP3 file?

If you want to view and edit ID3 audio or MP3 tags in VLC Media Player, then it has been really made simple. The quickest way to view/edit it is by using the CTRL + I shortcut key on your PC or by navigating to Tools > Media Information.

How do I get ID3 tags for music?

Your ID3 tag can be found by first going into iTunes, then selecting a specific song. From here, right click the selected song and select "Get Info". After you have opened this, a dialog box displaying the information will appear.

What is MP3 ID3 tag?

An ID3 tag is a type of metadata container used to store information into a media file (traditionally an MP3 audio file). The ID3 tags could include a title, an album title, the artist (author), genre, cover art, the year recorded and other details that are useful for the listener of your show.


1 Answers

There's no need to use binaryajax.js or id3 parser lib anymore. In Chrome at, you can use FileReader and DataView to read and extract the ID3v1 info. It's just a few lines:

http://ericbidelman.tumblr.com/post/8343485440/reading-mp3-id3-tags-in-javascript

like image 163
ebidel Avatar answered Oct 21 '22 18:10

ebidel