Below is a list of the events you can access in your application

Player Events

Event Name Scope Description
player_play Player event Indicates that the player is currently playing.
player_paused Player event Indicates that the player is paused.
player_position Player event Indicates that the player current track position has changed.
Returns currentTime and totalTime.
volume_changed Player event Indicates that the player volume level has changed.
Returns volumePercentage.
shuffle_changed Player event Indicates that the player shuffle has been toggled.
Returns a boolean.
repeat_changed Player event Indicates that the player repeat value has changed.
Possible values are 0, 1, 2:
0: no repeat
1: repeat all
2: repeat 1
Returns int 0, 1, 2.
mute_changed Player event Indicates that the player mute value has changed.
Returns a boolean.
tracklist_changed Player event Indicates that the player track list has changed.
For example:
- The track order has been change
- Adding / removing tracks
This method do not return anything
To get the new tracklist, you can to use:
DZ.player.getTrackList();
current_track Player event Indicates that the current track has changed in the player.
Returns an object as follows:
{
index: 0,
track: {
    album: {...},
    artist: {...},
    duration: 123,
    id: 2322,
    title: "track title",
}
}