Class TrackMarker


  • public class TrackMarker
    extends java.lang.Object
    A track position marker. This makes the specified handler get called when the specified position is reached or reaching that position has become impossible. This guarantees that whenever a marker is set and the track is played, its handler will always be called.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      TrackMarkerHandler handler
      The handler for the marker.
      long timecode
      The position of the track in milliseconds when this marker should trigger.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • timecode

        public final long timecode
        The position of the track in milliseconds when this marker should trigger.
      • handler

        public final TrackMarkerHandler handler
        The handler for the marker. The handler is guaranteed to be never called more than once, and guaranteed to be called at least once if the track is started on a player.
    • Constructor Detail

      • TrackMarker

        public TrackMarker​(long timecode,
                           TrackMarkerHandler handler)
        Parameters:
        timecode - The position of the track in milliseconds when this marker should trigger.
        handler - The handler for the marker.