MediaPlayer, MP4, and subtitles
Marcelo.Schneider at marinecyb.com
Thu May 10 05:10:33 PDT 2012
Is there a way to play subtitled files using MediaPlayer?
I'm loading a local MP4 (x264, AAC) video using the default Media/MediaPlayer/MediaView combo. Works OK.
When loading the same file with a subtitle track added, the subtitle track is not recognized and the file is not played at all (no exceptions thrown).
The way I see it, there should exist a SubtitleTrack class (same way there's an AudioTrack and VideoTrack) that, even if it doesn't render the subtitles on top of the video, should provide a way to access the contents so the user could add it as an overlay programatically.
What would be the best way to approach this problem?
Marcelo Frantz Schneider
Vestre Rosten 77, Trondheim, Norway
marcelo.schneider (at) marinecyb.com
More information about the openjfx-dev