Class 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[] stackTrace  
      long thresholdMs
      The wait threshold that was exceeded for this event to trigger
      AudioTrack track
      Audio track where the exception occurred
      • Fields inherited from class com.sedmelluq.discord.lavaplayer.player.event.AudioEvent

        player
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 player
        track - Audio track where the exception occurred
        thresholdMs - The wait threshold that was exceeded for this event to trigger