Skip to content

xpol/audioJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audioJS

AudioJS is a agnostic and cross-browser library to work easily with the AudioContext API of HTML5.

Browser Compatibility

AudioJS is compatible with the following browsers/version:

  • Google Chrome 28.0+
  • Firefox 25.0+
  • Safari 6.0+
  • IOS Safari 6.0-6.1+
  • Opera 16.0+

Properties

  • file String (undefined by default)
  • autoPlay Boolean (false by default)
  • loop Boolean (false by default)
  • volume Number (Range 0-1, 1 by default)

Methods

  • audioJS.play()
  • audioJS.stop()

Examples

	var audio = window.audioJS({
		file: 'audio.mp3'
	});

	audio.play();

	window.setTimeout(function(){
		audio.stop();
	}, 4000);

About

🎼 AudioJS is an agnostic and cross-browser library to work easily with the AudioContext API of HTML5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.1%
  • HTML 3.5%
  • CSS 2.5%
  • CoffeeScript 1.3%
  • Makefile 0.6%