diff options
author | Sven Göthel <[email protected]> | 2024-01-07 04:49:51 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-07 04:49:51 +0100 |
commit | e9e1732dc6691cb72920f25b1fb8431e94c7b561 (patch) | |
tree | dddf8fb3580f017ca820e457873e0b1654d6f576 /src/jogl/classes/com/jogamp/opengl | |
parent | 79eba1f0e450a75f01505ca5ed5817ec481491a8 (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.java | 7 |
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 |