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

MediaPlayer often causes lock up before becoming READY

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac OS X 10.8.4
      Java 8.0-ea-b96

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: