Skip to content

AudioPlaylist: Events

Evandro Leopoldino Gonçalves edited this page Jul 13, 2020 · 1 revision

To listen to an event, use the following method:

playlist.on(eventType: string, callback: (param: { data: any }) => void)

Event Types

  • start
    Triggered as soon as the audio is played for the first time.

  • end Fires when the playlist ends playing.

Clone this wiki locally