Skip to content

ts-audio v0.4.7

Compare
Choose a tag to compare
@EvandroLG EvandroLG released this 05 Mar 22:45
· 182 commits to master since this release

ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser.

What's new?

  • Updated AudioPlaylist component adding two new methods:

    • playlist.next(): void
      Stops the current audio and starts playing the next one based in the list provided in the AudioPlaylist instance. In case the current audio
      is the last in the list, it starts playing the first one.

    • playlist.prev(): void
      Stops the current audio and starts playing the previous one based in the list provided in the AudioPlaylist instance. In case the current
      audio is the first in the list, it starts playing the last one.

  • Complete example