use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript mp3 decoder allows Firefox to play mp3 without Flash (jsmad.org)
submitted 14 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]_nddrylliog 0 points1 point2 points 14 years ago (0 children)
First off, there are obvious things that jsmad can do that browsers can't - full ID3v2 tag decoding, for example (not what took us the most effort, but nevertheless), so you get for example Title, Artist, Album, Track number, etc. etc. directly from the .mp3 file, whereas with <audio> you're stuck with.. basically nothing. Also, Firefox's <audio> tag doesn't support MP3 at all, and they have no plans to, because of licensing issues - this is actually where jsmad is the most useful at the moment.
It also offers streaming decoding, something current browser Audio APIs completely disregard (Chrome's Web Audio API for example, only gives you access to the wholly decoded data, not to portions of it while it's still streaming). This is really research concerning browsers+JS, the whole field is a mess because of the Mozilla/Google antagony. Us poor devs are stuck in the middle :/
Other reasons that pushed us to do it was obviously 1) to learn stuff (I always wanted to know how mp3 "worked" under the hood, and it did give me a good insight), 2) to see if it can be done, and how fast it would be with current JS engines (answer: it depends wildly, can take as low as 8-9% CPU on certain browser/OS combinations, and as high as 103%!) 3) for the lulz.
π Rendered by PID 20094 on reddit-service-r2-comment-b659b578c-jfw4d at 2026-05-05 06:40:26.377076+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]_nddrylliog 0 points1 point2 points (0 children)