-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
Hi,
I am wondering if there is an API in JavaFX that allows me to be notified when a frame into a scene has been completely rendered.
This would allow me to take snapshots or "do something" for each frame being completed. Imagine saving a JavaFX scene to a media file. It would be even better to be notified before starting and after finishing a frame.
Something like:
scene.addRenderListener(renderListener);
and
// called before scene creation
renderListener.onInit(scene,time)
// called before rendering the frame
renderListener.onFrameStart(scene,time)
// called when the frame is completely rendered
renderListener.onFrameEnd(scene,time)
// called after scene destruction
renderListener.onDispose(scene,time)
I am wondering if there is an API in JavaFX that allows me to be notified when a frame into a scene has been completely rendered.
This would allow me to take snapshots or "do something" for each frame being completed. Imagine saving a JavaFX scene to a media file. It would be even better to be notified before starting and after finishing a frame.
Something like:
scene.addRenderListener(renderListener);
and
// called before scene creation
renderListener.onInit(scene,time)
// called before rendering the frame
renderListener.onFrameStart(scene,time)
// called when the frame is completely rendered
renderListener.onFrameEnd(scene,time)
// called after scene destruction
renderListener.onDispose(scene,time)
- relates to
-
JDK-8090693 Make VideoRendererListener API partially public
-
- Open
-