JavaFX Media - pause(); method makes MediaPlayer fast-forward?
the pause() method of MediaPlayer makes the Media "seek" a bit. It's really annoying but I didn't find out where the problem is. private void playPauseClicked() { Status currentStatus = player.getStatus(); if(currentStatus == Status.PLAYING) { Duration d1 = player.getCurrentTime(); //To measure the difference player.pause(); Duration d2 = player.getCurrentTime(); VIDEO_PAUSED = true; } else if(currentStatus == Status.PAUSED || currentStatus == Status.STOPPED) { player.play(); VIDEO_PAUSED = false; } } The result is not clear, it's something about 200-400ms difference between spot d1 and d2. Of