Smart package that wraps Buzz.js for MeteorJS use.
Using Meteoriteโฆ
mrt add buzz.js
Voila! It's available for your projects.
The following shows a very simple sample app that uses a sound effect from the buzz library's documentation:
mrt create test
cd test
mkdir -p public/sounds/
mrt add buzz.js
cd public/sounds
wget http://buzz.jaysalvat.com/demo/sounds/truck.ogg
cd -
mrt
Browse to http://localhost:3000/
and open up the web inspector to type the following:
var s = new buzz.sound('/sounds/truck.ogg');
s.play();
Check out Buzz.js' documentation for more information on how it works.