aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-07 04:49:51 +0100
committerSven Göthel <[email protected]>2024-01-07 04:49:51 +0100
commite9e1732dc6691cb72920f25b1fb8431e94c7b561 (patch)
treedddf8fb3580f017ca820e457873e0b1654d6f576 /src/jogl/classes/com/jogamp/opengl
parent79eba1f0e450a75f01505ca5ed5817ec481491a8 (diff)
GraphUI MediaPlayer / GLMediaPlayer: Add current chapter-title to info-field
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java
index e5351af03..94efb43c0 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java
@@ -1,5 +1,5 @@
/**
- * Copyright 2012 JogAmp Community. All rights reserved.
+ * Copyright 2012-2024 JogAmp Community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
@@ -789,6 +789,11 @@ public interface GLMediaPlayer extends TextureSequence {
/** Returns {@link Chapter} meta-data from stream, available after {@link State#Initialized} is reached after issuing {@link #playStream(Uri, int, int, int)}. */
public Chapter[] getChapters();
+ /**
+ * Returns {@link Chapter} covering given time position in milliseconds or null if none covers given time
+ * @param msec desired chapter covering time position in milliseconds
+ */
+ public Chapter getChapter(int msec);
/** Returns a string representation of this player, incl. state and audio/video details. */
@Override