0.7.4 • Published 3 years ago
ts-audio v0.7.4
·

ts-audio is an agnostic and easy-to-use library to work with the AudioContext API and create Playlists.
Features
- Simple API that abstracts the complexity of the AudioContext API
- Cross-browser support
- Makes easy to create audio playlist
- Works with any language that compiles to JavaScript
- Supports to Types
- Zero-dependecy
Installation
To install ts-audio, execute:
$ npm install ts-audioor
$ yarn add ts-audioQuickstart
ts-audio has two components at its core: Audio and AudioPlaylist. Both components are functions that you can call with certain parameters.
Below is an example of how to use the Audio:
import { Audio } from 'ts-audio';
const audio = Audio({
file: './song.mp3',
loop: true,
volume: 0.2,
});
audio.play();To use the AudioPlaylist component is also quite simple:
import { AudioPlaylist } from 'ts-audio';
const playlist = AudioPlaylist({
files: ['./songOne.mp3', './songTwo.mp3', './songThree.mp3'],
volume: 0.7,
});
playlist.play();Docs
- AudioPlaylist
License
0.7.4
3 years ago
0.7.3
3 years ago
0.7.2
3 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.1
4 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.7
5 years ago
0.4.6
5 years ago
0.4.5
5 years ago
0.4.4
5 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.0
6 years ago
0.3.1
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago