From e9e1732dc6691cb72920f25b1fb8431e94c7b561 Mon Sep 17 00:00:00 2001 From: Sven Göthel <sgothel@jausoft.com> Date: Sun, 7 Jan 2024 04:49:51 +0100 Subject: GraphUI MediaPlayer / GLMediaPlayer: Add current chapter-title to info-field --- src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp/opengl/util/av') 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 -- cgit v1.2.3