Popularity
1.2
Growing
Activity
6.7
-
97
3
20

Monthly Downloads: 0
Programming language: TypeScript
License: MIT License
Tags: Video/Audio    
Latest version: v0.4.5

ts-audio alternatives and similar libraries

Based on the "Video/Audio" category.
Alternatively, view ts-audio alternatives based on common mentions on social networks and blogs.

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 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-audio

or

$ yarn add ts-audio

Quickstart

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

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.