aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2023-12-30 21:18:46 +0100
committerSven Gothel <sgothel@jausoft.com>2023-12-30 21:18:46 +0100
commitf89bfe3d830a2b489e8b2488d07677ee057124f0 (patch)
tree33ff5f129178fec3db0c31123e95f9ab765ae544 /src
parent68b2dad19bd6d84f18b22f967ce320b448e8a270 (diff)
GraphUI MediaButton: Add clearImpl(..), stopping and rewinding stream
Diffstat (limited to 'src')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
index d14cb49fd..74ab3312b 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
@@ -125,6 +125,11 @@ public class MediaButton extends TexSeqButton {
@Override
+ protected void clearImpl(final GL2ES2 gl, final RegionRenderer renderer) {
+ ((GLMediaPlayer)texSeq).stop();
+ ((GLMediaPlayer)texSeq).seek(0);
+ }
+ @Override
protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
((GLMediaPlayer)texSeq).destroy(gl);
}