56 | | Since repainting the scene by grabbing the current frame from the player should be forced we should add a Timer which will repaint the SimpleSceneVisual's swing component if the there is a video content in this scene. |
| 56 | Since repainting the scene by grabbing the current frame from the player should be forced we should add a Timer which will repaint the SimpleSceneVisual's swing component if there is a video content in this scene and it's playing. |
| 57 | The Timer instance will be in SimpleSceneVisual and it will update (force redraw) the scene 15 times in a second. The update will happen only if there's a runnig video. To understand if there's a running video use the following approach : |
| 58 | * Take the scene elements |
| 59 | * If there's a MediaSceneElement take the media state |
| 60 | * If the media is playing the scene sould be updated |
| 61 | |