Class TrackStuckEvent
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.player.event.AudioEvent
-
- com.sedmelluq.discord.lavaplayer.player.event.TrackStuckEvent
-
public class TrackStuckEvent extends AudioEvent
Event that is fired when a track was started, but no audio frames from it have arrived in a long time, specified by the threshold set via AudioPlayerManager.setTrackStuckThreshold().
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StackTraceElement[]stackTracelongthresholdMsThe wait threshold that was exceeded for this event to triggerAudioTracktrackAudio track where the exception occurred-
Fields inherited from class com.sedmelluq.discord.lavaplayer.player.event.AudioEvent
player
-
-
Constructor Summary
Constructors Constructor Description TrackStuckEvent(AudioPlayer player, AudioTrack track, long thresholdMs, java.lang.StackTraceElement[] stackTrace)
-
-
-
Field Detail
-
track
public final AudioTrack track
Audio track where the exception occurred
-
thresholdMs
public final long thresholdMs
The wait threshold that was exceeded for this event to trigger
-
stackTrace
public final java.lang.StackTraceElement[] stackTrace
-
-
Constructor Detail
-
TrackStuckEvent
public TrackStuckEvent(AudioPlayer player, AudioTrack track, long thresholdMs, java.lang.StackTraceElement[] stackTrace)
- Parameters:
player- Audio playertrack- Audio track where the exception occurredthresholdMs- The wait threshold that was exceeded for this event to trigger
-
-