Closed marcobiedermann closed 7 years ago
What do you mean with "I run my script on localhost to prevent XHR Request"? The library either works with the File API or XHR Requests, to use the File API you need to use it like this: https://github.com/aadsm/JavaScript-ID3-Reader/#file-api
I was not correct with my comment. I used localhost
instead of file:///Users/[username]/Documents/...
. I also read the documentation on the File API and copied your source code from the demo page but it does not work. the site is constantly loading. Unfortunately I get not output in the console, so I can not give you more information.
My idea was to create a nice looking audio player with the HTML5 audio tag and get the song title, artist and album cover from the ID3 meta tags.
I tried you script to extract some ID3 data out of a mp3 file but it does not work for me. I run my script on localhost and used your script form the documentation. When I upload the mp3 file to your demo page it works fine. Here is my setup of the project:
File Stucture
index.html
script.js
Screenshot form most recent version of Chrome Version 40.0.2214.91 (64-bit) on Mac OS X 10.10.1
Any idea? Thank you very much :)