-
Notifications
You must be signed in to change notification settings - Fork 23
Audio: Methods
-
audio.
play(): void
Starts playing the video as soon as the audio is loaded. In case the audio was previously paused, it continues to play from the position that had been paused. -
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. -
audio.
pause(): void
Pauses the audio and can be played again by calling theplay
method -
audio.
toggle(): void
Plays or pause the current audio -
audio.
stop(): void
Stops playback immediately.