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

Media Player Current Time property listener issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • 7u45
    • javafx
    • MacOS

      Hi,
      I am developing playback functionality using javafx media player and javafx slider component. While playing video using JavaFX media player, I am updating slider values by setting Change Listener/Invalidation listener to current Time property of the media player like below
      ---
      mediaPlayer.currentTimeProperty().addListener(new ChangeListener<Duration>() {
                  @Override
                  public void Changed(ObservableValue<? extends Duration> observable, Duration oldValue, Duration newValue) {
                       updateSliderValue();
                  }
             });
      ----
      Above code snippet is working fine in Windows for MP4 videos but not working in MacOS 10.9.1 version.
      Note: I tried with flv video, its working fine on both windows and MacOS 10.9.1 version.

      Can you please assist me on this.

      With Regards,
      Krishna Bhaskar.

            stayer Kirill Kirichenko (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: