ts-audio v0.4.7
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.
-