Is there anyway to get ID3 metadata from an MP3 or Vorbis comments from Ogg via the HTML5 audio element?
问题 Mozilla Developer Center's HTML5 media guide describes an event for audio and video elements called "loadedmetadata". Is there anyway to get the metadata for files? I am writing an HTML5 extension for Google Chrome and I don't know what the metadata for the audio files I'm creating a player for beforehand. Edit: This question seems to be kicking everyone's ass. :/ 回答1: According to this you can use filereader.readAsBinaryString(file); to get the binary data of the ID3 tag. filereader