From 670286747af423781aa4f54062aa34345d32a397 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Mon, 29 Jan 2024 06:08:35 +0100 Subject: GLMediaPlayer: Add getSubtitleCodec() --- src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | 10 ++++++++-- src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 3 +++ 2 files changed, 11 insertions(+), 2 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 698504205..91211df58 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java +++ b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java @@ -781,16 +781,22 @@ public interface GLMediaPlayer extends TextureSequence { /** * Warning: Optional information, may not be supported by implementation. - * @return the code of the video stream, if available + * @return the codec of the video stream, if available */ public String getVideoCodec(); /** * Warning: Optional information, may not be supported by implementation. - * @return the code of the audio stream, if available + * @return the codec of the audio stream, if available */ public String getAudioCodec(); + /** + * Warning: Optional information, may not be supported by implementation. + * @return the codec of the subtitle stream, if available + */ + public String getSubtitleCodec(); + /** * Warning: Optional information, may not be supported by implementation. * @return the total number of video frames diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index a36213a01..a963f935b 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -1939,6 +1939,9 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { @Override public final String getAudioCodec() { return acodec; } + @Override + public String getSubtitleCodec() { return scodec; } + @Override public final int getVideoFrames() { return videoFrames; } -- cgit v1.2.3