安卓的MediaPlayer / VideoView W /字幕(SRT) [英] Android MediaPlayer/VideoView w/Subtitles (SRT)

查看:2030
本文介绍了安卓的MediaPlayer / VideoView W /字幕(SRT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

难道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.

有支持字幕提供第三方播放器应用程序在谷歌播放。其中之一是<一href="https://play.google.com/store/apps/details?id=com.clov4r.android.nil&hl=en">MoboPlayer

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

如果您打算做用code时,下面的链接是一个很好的资源<一href="http://www.ittiam.com/IttiamAdmin/Downloads/RenderingSubtitlesinAndroid201192914525892.pdf">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外挂字幕。更多详细信息,请访问<一href="http://developer.android.com/about/versions/android-4.1.html#Multimedia">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

这篇关于安卓的MediaPlayer / VideoView W /字幕(SRT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆