Live data from Hacker News

JavaScript mp3 decoder allows Firefox to play mp3 without flash

jsmad.org

41–50 of 99 posts

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#41
--------- http://www.soozone.com

http://www.soozone.com We accept pyapal payment. You do not miss it. We need your support and trust!!! free shipping (Jordan wholesale) Dear customers, thank you for your support of our company. Here, there's good news to tell you: The company recently launched a number of new fashion items! ! Fashionableand welcome everyone to come buy. (Jordan wholesale) http://www.soozone.com

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#42

If imitation is the sincerest form of flattery, feature requests must be the next-sincerest. With that out of the way, I'd love to see: * Standard playback widgets: volume, position slider, etc. * A way to link songs, e.g. http://jsmad.org/play/114578 Fantastic work!

I just added the link song feature. The link above should now work ;) Enjoy!

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#44
post #39

Earlier quoted context omitted.

No, it does not work in Chrome yet, only Firefox 4+ (or Aurora etc). But it is on the roadmap.

Works fine for me on Chrome 13, OS X 10.6.7, however I do have Web Audio enabled in about:flags. Whether or not the Web Audio API's by-passing jsmad, I don't know.

Awesome! Good to know, I'll test it right now.

Edit: I cannot get it to work in Canary, even with Web Audio enabled. Hm...

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#45
post #42

If imitation is the sincerest form of flattery, feature requests must be the next-sincerest. With that out of the way, I'd love to see: * Standard playback widgets: volume, position slider, etc. * A way to link songs, e.g. http://jsmad.org/play/114578 Fantastic work!

I just added the link song feature. The link above should now work ;) Enjoy!

For those wondering: romac is too modest. He's this awesome guy I'm building a startup with, and he's been kind enough to let me host the demo on our shared VPS zip.cat, and he's been sysadmining really hard for the last 2+ hours to keep our server from collapsing under the combined weight of the internets :)

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#46
post #42

If imitation is the sincerest form of flattery, feature requests must be the next-sincerest. With that out of the way, I'd love to see: * Standard playback widgets: volume, position slider, etc. * A way to link songs, e.g. http://jsmad.org/play/114578 Fantastic work!

I just added the link song feature. The link above should now work ;) Enjoy!

That is both amazing and amazingly fast. Thank you!

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#47
post #37

Earlier quoted context omitted.

The library is named after libmad, which when ported to js became jsmad. The page linked is just a demo for Music Hackday Barcelona, was not intended to get _this_ much publicity.

Ah, makes perfect sense. Thanks and good luck with the project!

Yeah, this is not the official logo btw - @antoinem is the one to contact about the Demo's visual look.

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#48
post #39

Earlier quoted context omitted.

Works fine for me on Chrome 13, OS X 10.6.7, however I do have Web Audio enabled in about:flags. Whether or not the Web Audio API's by-passing jsmad, I don't know.

Awesome! Good to know, I'll test it right now. Edit: I cannot get it to work in Canary, even with Web Audio enabled. Hm...

Did you click the Relaunch Chrome button at the bottom of the about:flags page? I got it working with Chrome on OSX once I did that.

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#49
post #48

Earlier quoted context omitted.

Awesome! Good to know, I'll test it right now. Edit: I cannot get it to work in Canary, even with Web Audio enabled. Hm...

Did you click the Relaunch Chrome button at the bottom of the about:flags page? I got it working with Chrome on OSX once I did that.

You are right, it does work. Thank you!

Re: JavaScript mp3 decoder allows Firefox to play mp3 without flash

#50

It'd be neat to have a overview of the different 'modules' in play and what they do (either in the README or a separate wiki page). Great stuff!

We would've loved to have that too when porting the mad code. Here's a quick overview: bytestream is our general I/O abstract class - there's much room for improvement because it works with Strings. substream allows to have a 'view' of a slice of a bytestream. filestream and ajaxstream are two implementations of bytestream, doing local File I/O (with the upcoming W3C File API) and XMLHttpRequest streaming. On Firefox…

Maybe it's a silly question, but how did you output sound after decoding the stream? I wasn't aware browser JavaScript had any APIs that work with sounds directly. There is Audio, but IIRC it just streams the file from the server.

I've looked at the sources, but couldn't fine the part that would answer my question.

Post reply on HN