Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devversion/soundjs

Simply control Audio Output of Client
https://github.com/devversion/soundjs

Last synced: 22 days ago
JSON representation

Simply control Audio Output of Client

Awesome Lists containing this project

README

        

# SoundJS
Control the audio output your JS client :heart:

### Download
- Download the source and use the ```dist``` folder.
- https://github.com/PaulGap/soundjs/releases

### Installation
- You can choose between the minified and normal js file.
- Just include the library with the following code.
- `````` or
- ``````

### Usage
```
var soundjs = new SoundJS();

// Set Sound Path
soundjs.setPath("sound.mp3");

// Set Volume
soundjs.setVolume(1);

// Add a Callback
soundjs.setCallback(function() {
alert("The Sound ended!");
});

// Play the Sound
soundjs.play();
```