title: JavaFX MediaPlayer switches to state PLAYING, but doesn't play mp3
body: <p>I'm trying to play an mp3 file using the JavaFX MediaPlayer. It loads the file and switches to the PLAYING state without any errors, but it doesn't play the file and the currentTimeProperty doesn't change either. What am I doing wrong?</p>
  
  <pre><code>public class Test extends Application {
  
      public static void main(String[] args) {
          launch(args);
      }
  
      @Override
      public void start(Stage primaryStage) throws Exception {
          MediaPlayer player = new MediaPlayer(new Media(
                  new File("sounds/sound.mp3").toURI().toString()
          ));
  
          Button btn = new Button("Play");
          btn.setOnAction(event -&gt; player.play());
          VBox pane = new VBox(10, btn);
          pane.setAlignment(Pos.CENTER);
          Scene scene = new Scene(pane, 100, 100);
          primaryStage.setScene(scene);
          primaryStage.show();
      }
  }
  </code></pre>