安卓的MediaPlayer / VideoView W /字幕(SRT)字幕、MediaPlayer、VideoView、SRT

2023-09-12 23:05:48 作者:笙歌白云上

难道Android的MediaPlayer的支持SRT字幕?我试图将SRT文件在同一目录中的视频文件并将其命名一样(除了病程的延长),但还没有任何运气让他们显示。任何想法,建议?

Does Android's MediaPlayer support SRT subtitles? I've attempted to place the SRT file in the same directory as the video file and name it the same (with the exception of the extension of course), but haven't had any luck getting them to display. Any thoughts, recommendations?

推荐答案

的Andr​​oid 4.0.x的版本及以下

在案件的Andr​​oid 4.0版本及以下,默认媒体播放器不支持字幕。

In case of Android 4.0 version and below, default Media Player did not support subtitles.

有支持字幕提供第三方播放器应用程序在谷歌播放。其中之一是MoboPlayer

There are third party player apps available in Google Play which support subtitles. One of them is MoboPlayer

如果您打算做用code时,下面的链接是一个很好的资源http://www.ittiam.com/IttiamAdmin/Downloads/RenderingSubtitlesinAndroid201192914525892.pdf

If you are planning to do it using code, the following link is a good resource http://www.ittiam.com/IttiamAdmin/Downloads/RenderingSubtitlesinAndroid201192914525892.pdf

的Andr​​oid 4.1(果冻豆 - JB))

Android的JB版中内置了内部(在MP4文件present)和SRT外挂字幕。更多详细信息,请访问http://developer.android.com/about/versions/android-4.1.html#Multimedia

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

 
精彩推荐
图片推荐