Popularity
0.9
-
Activity
8.5
-
61
2
17

Monthly Downloads: 0
Programming language: TypeScript
Tags: Video/Audio    
Latest version: v0.2.0

ts-audio alternatives and similar libraries

Based on the "Video/Audio" category

Do you think we are missing an alternative of ts-audio or a related project?

Add another 'Video/Audio' Library

README

ts-audio · Build Status [license](./LICENSE)

ts-audio is an agnostic and easy-to-use library to work with the AudioContext API.

Features

  • Simple API that abstracts the complexity of the AudioContext API
  • Cross-browser support
  • Works with any language that compiles to JavaScript
  • Support to Types

Installation

To install ts-audio, execute:

$ npm install ts-audio

or

$ yarn add ts-audio

Quickstart

import Audio from 'ts-audio';

const audio = Audio({
  file: './song.mp3',
  loop: true,
  volume: 0.2
});

document.getElementById('bt-play').addEventListener('click', () => {
  audio.play()
});

Docs

License

MIT


*Note that all licence references and agreements mentioned in the ts-audio README section above are relevant to that project's source code only.