Amethyst’s player will emit these events when things happen

player:play

Emits when a new song starts playing

amethyst.player.on("player:play", (track: Track) => {});

player:pause

Emits when user pauses playback

amethyst.player.on("player:pause", (track: Track) => {});

player:resume

Emits when user resumes/continues playback

amethyst.player.on("player:resume", (track: Track) => {});

player:stop

Emits when the player has finished playing the queue

This will not emit if looping entire queue is enabled

amethyst.player.on("player:resume", (track: Track) => {});

player:seek

Emits when user seeks

amethyst.player.on("player:seek", (position: Number) => {});

player:trackChange

Emits when user changes the playing track

amethyst.player.on("player:trackChange", (track: Track) => {});

player:next

Emits when user skips to the next track

player:trackChange will also emit alongside this

amethyst.player.on("player:next", (track: Track) => {});

player:previous

Emits when user skips to the previous track

player:trackChange will also emit alongside this

amethyst.player.on("player:previous", (track: Track) => {});

player:volumeChange

Emits when user changes the playback volume

amethyst.player.on("player:volumeChange", (dB: number) => {});

player:currentTrackMetadataLoaded

Emits when the metadata for the currently playing track has finished loading

amethyst.player.on("player:currentTrackMetadataLoaded", (track: Track) => {});