aadsm / JavaScript-ID3-Reader

ID3 tags reader in JavaScript (ID3v1, ID3v2 and AAC)
http://www.aadsm.net/libraries/id3/
Other
552 stars 145 forks source link

ID3 from streaming (Icecast/SHOUTcast) #58

Open MisterGot opened 8 years ago

MisterGot commented 8 years ago

Hi António, Do you know if it's possible to decode the ID3 from a stream? We plan to use the Web Audio API to decode the metadata but I don't see anything on the web talking about that. Then I found your solution but I guess it's only for FileAPI? Thanks in advance, Greg

aadsm commented 8 years ago

I've never tried but it should be possible. FileAPI is just one of the available readers, XHR and Node is also supported. You'd need to implement your own reader though, but it should be possible since files are read asynchronously and in a random way meaning that we only load the bytes that are really needed (as opposed to reading the entire file).

I've been working on the next version of this library (here: https://github.com/aadsm/jsmediatags) and it should be much simpler to implement a new file reader there: https://github.com/aadsm/jsmediatags#new-file-readers.

ghost commented 8 years ago

@MisterGot No, that's not possible, but there's a better way. Check this jQuery plugin: http://codecanyon.net/item/kast-extraordinary-shoutcast-html5-radio-player-for-jquery-material-design/14396614