I'm developing an Android app which includes a video component; I'm hoping to provide support for subtitles encoded into the stream but I can't find any references to whether they are supported natively within the Android media player. Does anyone here have any experience with this situation?
Asked
Active
Viewed 6,912 times
6

HostileFork says dont trust SE
- 32,904
- 11
- 98
- 167

Craig
- 2,173
- 1
- 19
- 20
-
It may be helpful to specify the format of the video and subtitle files which you are handling. – Nathan Taylor Dec 08 '10 at 21:26
-
Indeed! I'm open to suggestion to be honest, as I have some control over what format I'd be using, but ideally it'd be M4V/MP4. I was under the impression that soft subtitles could be encoded into the file/stream so no subtitle files as such, but I'm not a video expert so that could be well wide of the mark! – Craig Dec 08 '10 at 23:25
1 Answers
6
Android 4.0.x version and below
In case of Android 4.0 version and below, default Media Player did not support subtitles.
It can be done at application layer (using java code) or using native NDK. More details at this white paper on how to support subtitles in Android
Android 4.1 (Jelly Bean - JB)) Onwards
Android JB version has built in support for internal (present in MP4 files) and SRT external subtitles. More details is available at http://developer.android.com/about/versions/android-4.1.html#Multimedia

Oak Bytes
- 4,649
- 4
- 36
- 53