Skip to content
Evandro Leopoldino Gonçalves edited this page Apr 2, 2022 · 3 revisions
  • 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 the play method

  • audio.toggle(): void
    Plays or pause the current audio

  • audio.stop(): void
    Stops playback immediately.

Clone this wiki locally