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