Comment faire bouclez Javafx Media Player

mediaPlayer.setCycleCount(MediaPlayer.INDEFINITE);
mediaPlayer.play();
Pixel Freak