Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
enum TrackEndReason
import { TrackEndReason } from "https://deno.land/x/lavalink_types@2.0.6/src/player.ts";

The different end reasons.

Members

Cleanup = "CLEANUP"

The track was stopped because the cleanup threshold for the audio player has reached. This triggers when the amount of time passed since the last frame fetch has reached the threshold specified in the player manager. This may also indicate either a leaked audio player which has discarded, but not stopped.

Finished = "FINISHED"

This means the track itself emitted a terminator. This is usually caused by the track reaching the end, however it will also be used when it ends due to an exception.

LoadFailed = "LOAD_FAILED"

This means that the track failed to start, throwing an exception before providing any audio.

Replaced = "REPLACED"

The track stopped playing because a new track started playing. Note that with this reason, the old track will still play until either it's buffer runs out or audio from the new track is available.

Stopped = "STOPPED"

The track was stopped due to the player being stopped by the "stop" operation.