public interface TrackPositionListener
The listener interface for receiving updates when there are significant changes to the movement through a track on a player (for example, to send time code that represents the progress of playing the track).
Classes that are interested in being informed when unexpected movement or changes in playback state occur on
a player can implement this
interface, and then pass the implementing instance to
TimeFinder.addTrackPositionListener(int, TrackPositionListener).
Then, whenever a player loads a new track (or the set of available metadata changes, so we know more or less about
tracks in any loaded player), movementChanged(TrackPositionUpdate) will be called, with the currently
available position and movement information about the track being played by the player.
| Modifier and Type | Method and Description |
|---|---|
void |
movementChanged(TrackPositionUpdate update)
Called when there has been a significant change in movement since the last reported change.
|
void movementChanged(TrackPositionUpdate update)
update - the latest information about the current track position and playback state and speed, or
null if we can no longer determine that informationCopyright © 2016–2018 Deep Symmetry, LLC. All rights reserved.