Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/devversion/soundjs
- Owner: devversion
- Created: 2015-05-22T17:08:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T17:49:33.000Z (over 9 years ago)
- Last Synced: 2024-11-11T06:12:26.035Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 492 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```