Jak zapętlić odtwarzacz multimedialny Javafx

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