-
Enhancement
-
Resolution: Fixed
-
P4
-
None
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!
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!