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

MediaPlayer.currentTime changing value could update the current rendered frame

XMLWordPrintable

      Hi

      I am not sure if this was working in the last JavaFX 1.0 release, but changing currentTIme does not appear to update the video frame.

      What is need, I think, is a MediaPlayer#requestRepaint() call. This would hint to the mediaPlayer to render the frame of the video frame.

      e.g.

      var sliderValue: Integer on replace {
          if ( player != null and player.status == MediaPlayer.PAUSED ) {
              player.currentTime = sliderValue * 1ms ;
              // FX.println("player.currentTime={player.currentTime}");
              player.requestRepaint();
          }
      }

      JMC player can coalescent events for performance and do whatever, but just get me the current frame image or nearest frame image.

      Thanks!

            almatvee Alexander Matveev
            ppilgrimjfx Peter Pilgrim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: