aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-29 06:08:35 +0100
committerSven Göthel <[email protected]>2024-01-29 06:08:35 +0100
commit670286747af423781aa4f54062aa34345d32a397 (patch)
treea9e38f8af6cfec2e6dbe7d92b5afd72f97ed4b63 /src
parenta19f810c9618e2fa6829f1c157d2e1a88ca178de (diff)
GLMediaPlayer: Add getSubtitleCodec()
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java10
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java3
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,18 +781,24 @@ public interface GLMediaPlayer extends TextureSequence {
/**
* <i>Warning:</i> 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();
/**
* <i>Warning:</i> 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();
/**
* <i>Warning:</i> Optional information, may not be supported by implementation.
+ * @return the codec of the subtitle stream, if available
+ */
+ public String getSubtitleCodec();
+
+ /**
+ * <i>Warning:</i> Optional information, may not be supported by implementation.
* @return the total number of video frames
*/
public int getVideoFrames();
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
@@ -1940,6 +1940,9 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer {
public final String getAudioCodec() { return acodec; }
@Override
+ public String getSubtitleCodec() { return scodec; }
+
+ @Override
public final int getVideoFrames() { return videoFrames; }
@Override