From 68b2dad19bd6d84f18b22f967ce320b448e8a270 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 30 Dec 2023 21:18:16 +0100 Subject: GLMediaPlayer/FFMPEGMediaPlayer: Add chapter metadata support and use com.jogamp.common.av.PTS.millisToTimeStr(..) Chapter metadata is now supported via our FFMPEGMediaPlayer implementation. Added public method: 'Chapters[] GLMediaPlayer.getChapters()' --- src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java') diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java index 9099bfb08..03b61b9ef 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java +++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java @@ -71,6 +71,12 @@ import com.jogamp.opengl.util.texture.TextureSequence.TextureFrame; abstract int getAudioPTS0(long moviePtr); + abstract int getChapterCount0(long moviePtr); + abstract int getChapterID0(long moviePtr, int idx); + abstract int getChapterStartPTS0(long moviePtr, int idx); + abstract int getChapterEndPTS0(long moviePtr, int idx); + abstract String getChapterTitle0(long moviePtr, int idx); + /** * @return resulting current video PTS, or {@link TextureFrame#INVALID_PTS} */ -- cgit v1.2.3