JavaScript-ID3-Reader icon indicating copy to clipboard operation
JavaScript-ID3-Reader copied to clipboard

ID3 from streaming (Icecast/SHOUTcast)

Open MisterGot opened this issue 9 years ago • 2 comments

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

MisterGot avatar Dec 16 '15 17:12 MisterGot

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.

aadsm avatar Dec 17 '15 07:12 aadsm

@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

ghost avatar Feb 09 '16 23:02 ghost