开发者

Subtitle / Closed caption support in Android

开发者 https://www.devze.com 2023-01-30 03:37 出处:网络
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 fi开发者_JAVA百科nd any references to whether they ar

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 fi开发者_JAVA百科nd any references to whether they are supported natively within the Android media player. Does anyone here have any experience with this situation?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号