Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8123165

MediaPlayer often causes lock up before becoming READY

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • Mac OS X 10.8.4
      Java 8.0-ea-b96

      JavaFX 8.0-b96 I try to add several MediaViews with MediaPlayers to a simple UI. Usually the first one works, but beyond that there is a high probability that the application will lock up as additional MediaPlayers are created. The call to the MediaPlayer constructor always returns, but the player never becomes "READY". Mousing over the UI I get a "spinning beach ball of death". It appears to be a race condition as on subsequent runs more MediaPlayers may successfully initialize. If all of them successfully initialize the UI continues to work as expected and playback and seeking are functional.
      I'm using .mp4 files and .m4v files on the local disk, all of them play fine with the JavaFX MediaPlayer in isolation.
      I have installed a changeListener on the MediaPlayer's status property and whenever the lockup occurs, the status callback has not been called for the last MediaPlayer constructed, nor has the onReady event handler been called.

            almatvee Alexander Matveev
            swpalmer Scott Palmer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: