Skip to content

brentjanderson/meteor-buzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buzz Smart Package

Smart package that wraps Buzz.js for MeteorJS use.

Usage

Using Meteor 1.0

meteor add brentjanderson:buzz

Voila! It's available for your projects.

Example

The following shows a very simple sample app that uses a sound effect from the buzz library's documentation:

meteor create test
cd test
mkdir -p public/sounds/
meteor add brentjanderson:buzz
cd public/sounds
wget http://buzz.jaysalvat.com/demo/sounds/truck.ogg
cd -
meteor

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.

About

Meteor package for the fantastic Buzz javascript audio library

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •