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

Mac: MediaPlayer wrong state transition.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u45
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      JavaFX version: 2.2.45-b18
      OS X 10.8.5 (12F45)
      $ java -version
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      Description

      See attached application.
      This application creates the MediaPlayer and when the user clicks the Play button the MediaPlayer #play() is called

      There are two cases:
      If the media is remote ( http:// ) then the following state transition sequence is observed:

      {noformat}
      Player status READY
      Player status PAUSED
      Player status PLAYING
      Current time 2478.4984950000003 ms
      Current time 2577.335442 ms
      {noformat}

      The PAUSED state should not be entered, sine according to http://docs.oracle.com/javafx/2/api/index.html the only way to enter it is to call pause()

      If the media is local (file:// ) the behavior is even more bizarre, the PLAYING state is never entered, but the actual movie is being played. The mediaPlayer.currentTimeProperty() is never invalidated.

      {noformat}
      Player status READY
      Player status PAUSED
      {noformat}

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: