return true;
}
};
timeReachedCondition.await();
Condition<?> pausedCondition = new PausedCondition(mediaPlayer) {
@Override
protected boolean onBefore() {
mediaPlayer.pause();
return true;
}
};
pausedCondition.await();
Condition<?> snapshotTakenCondition = new SnapshotTakenCondition(mediaPlayer) {
@Override
protected boolean onBefore() {
mediaPlayer.saveSnapshot();