diff options
author | Sven Göthel <[email protected]> | 2024-02-07 03:33:14 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-07 03:33:14 +0100 |
commit | 6e7f7b444691e2c0c56c9746e6a27d42d6e35a46 (patch) | |
tree | 5f39d19f26de9d53209649b94ae087db42723201 /src/demos/com/jogamp | |
parent | 35715d84f2c268f33b86814534ddcac70b883118 (diff) |
GraphUI MediaPlayer: Add HUDShape on time-slider @ mouse-over with time-string and still-images (optional) .. using HUDShape
Diffstat (limited to 'src/demos/com/jogamp')
-rw-r--r-- | src/demos/com/jogamp/opengl/demos/graph/ui/UIMediaGrid01.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UIMediaGrid01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UIMediaGrid01.java index ad9e6c93c..9ef28fec3 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/UIMediaGrid01.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UIMediaGrid01.java @@ -98,6 +98,7 @@ public class UIMediaGrid01 { private static int start_pos = 0; private static float videoAspectRatio = 16f/9f; private static boolean letterBox = true; + private static boolean enableStills = true; private static int texCount = GLMediaPlayer.TEXTURE_COUNT_DEFAULT; public static void main(final String[] args) throws IOException { @@ -149,6 +150,8 @@ public class UIMediaGrid01 { } else if(args[idx[0]].equals("-texCount")) { idx[0]++; texCount = MiscUtils.atoi(args[idx[0]], texCount); + } else if(args[idx[0]].equals("-noStills")) { + enableStills = false; } } } @@ -406,7 +409,7 @@ public class UIMediaGrid01 { }); customCtrls.add(button); } - final MediaPlayer graphMPlayer = new MediaPlayer(options.renderModes, scene, glMPlayer, medium, defRatio, letterBox, zoomSize, customCtrls); + final MediaPlayer graphMPlayer = new MediaPlayer(options.renderModes, scene, glMPlayer, medium, defRatio, letterBox, zoomSize, enableStills, customCtrls); grid.addShape( graphMPlayer ); glMPlayer.playStream(medium, GLMediaPlayer.STREAM_ID_AUTO, alang, aid, slang, sid, texCount); if( start_pos > 0 ) { |