public void invokeSeekCompleteListener() {
    int duration = getMediaInfo().duration;
    setCurrentPosition(pendingSeek > duration ? duration
        : pendingSeek < 0 ? 0 : pendingSeek);
    pendingSeek = -1;
    if (state == STARTED) {
      doStart();
    }
    if (seekCompleteListener == null) {
      return;
    }
    seekCompleteListener.onSeekComplete(player);
  }
public void invokeSeekCompleteListener() {
    int duration = getMediaInfo().duration;
    setCurrentPosition(pendingSeek > duration ? duration
        : pendingSeek < 0 ? 0 : pendingSeek);
    pendingSeek = -1;
    if (state == STARTED) {
      doStart();
    }
    if (seekCompleteListener == null) {
      return;
    }
    seekCompleteListener.onSeekComplete(player);
  }
public void invokeSeekCompleteListener ( ) { int duration = getMediaInfo ( ) . duration ; setCurrentPosition ( pendingSeek > duration ? duration : pendingSeek < 0 ? 0 : pendingSeek ) ; pendingSeek = - 1 ; if ( state == STARTED ) { doStart ( ) ; } if ( seekCompleteListener == null ) { return ; } seekCompleteListener . onSeekComplete ( player ) ; }
Allows test cases to simulate seek completion by invoking callback.
Allows test cases to simulate seek completion by invoking callback .