Cómo enrollar Javafx Media Player

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