fasterthanlime / jsmad

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

Have a Usage in the Readme #7

Open laughinghan opened 13 years ago

laughinghan commented 13 years ago

It'd useful whether you want to use jsmad, or, like I do, want to cut to chase of how it works rather than going through readFile and Mad.Player. Actually I kinda gave up at that point. A walkthrough of the code would be nice too (like https://github.com/laughinghan/mathquill#readme, but not poorly written and out of date).

solsticedhiver commented 13 years ago

+1 I wanted too to try out jsmad but gave up because I didn't found how to do it by (fast-)reading the html/js code.

shamess commented 13 years ago

+1 here too. I'm not really sure how to start...

neuroscr commented 12 years ago

The minimum I've found to make it work:

script type="text/javascript" src="src/jsmad.min.js"></script script type="text/javascript" src="audiolib.js/lib/audiolib.min.js"></script script> Mad.Player.fromURL( URL, function(player) { player.onPlay = function() { }; player.createDevice(); player.setPlaying(true); }); </script