fasterthanlime / jsmad

:saxophone: Javascript MPEG-1 Audio Layer III (mp3) and ID3v2 decoder
http://audiocogs.org/codecs/mp3/
762 stars 41 forks source link

request for feature: decode from URL #29

Closed automata closed 12 years ago

automata commented 12 years ago

The official.fm id and local files options on http://jsmad.org are interesting but It'd be also interesting to decode a file from an URL.

auroranockert commented 12 years ago

On Mar 12, 2012, at 9:20 PM, Vilson Vieira wrote:

The official.fm id and local files options on http://jsmad.org are interesting but It'd be also interesting to decode a file from an URL.

That is a limitation of the browser APIs, we cannot access arbitrary URLs (for security reasons.)

CORS to some degree reduces that limitation.

automata commented 12 years ago

We totally forgotten about CORS, you are right!

auroranockert commented 12 years ago

I closed this, would love to implement it once browsers allow it.

(I think we use CORS on http://codecs.ofmlabs.org to supply the songs, if you want an example of using jsmad like that)

automata commented 12 years ago

Thank you Jens, pretty good work on codes!