Class TimeReachedWaiter

All Implemented Interfaces:
MediaPlayerEventListener

public class TimeReachedWaiter extends MediaPlayerWaiter<Long>
Implementation of a condition that waits for the media player to report that it has reached/passed a particular point in time (i.e. time from the beginning of media playback).
  • Constructor Details

    • TimeReachedWaiter

      public TimeReachedWaiter(MediaPlayer mediaPlayer, long targetTime)
      Create a condition.
      Parameters:
      mediaPlayer - media player
      targetTime - target time (milliseconds since start)
  • Method Details