Are subtitles supported in any of the native video controls?
-
01-10-2019 - |
Question
I'm writing an application with some embedded video content, it's Android 2.2 that I'm targetting. I need to show localized subtitles for the video content.
The video content can be mp4 or 3gp video, played from the SD card.
There are some third party video players out there that already support subtitles, but I haven't seen any open source ones I can bundle, or examine the code for.
So, are there any subtitle enabled controls or are there any open source video player projects which include subtitles?
What options are there for this scenario?
Solution
This should solve the problem.
Something I came across on xda-devs http://forum.xda-developers.com/showthread.php?t=890761
Mplayer was recently ported to Android.
The source for MPlayer is here http://www.mplayerhq.hu/design7/dload.html
Best of luck!
OTHER TIPS
I don't know of a way to show subtitles natively on Android. However, if the subtitles are in .srt format, parsing them would be easy: you could just overlay them over a VideoView control that is playing the video.