任何本机视频控件都支持字幕吗?
我正在编写一个带有一些嵌入式视频内容的应用程序,我的目标是 Android 2.2。我需要显示视频内容的本地化字幕。
视频内容可以是 mp4 或 3gp 视频,从 SD 卡播放。
有一些第三方视频播放器已经支持字幕,但我还没有看到任何可以捆绑或检查代码的开源视频播放器。
那么,是否有任何启用字幕的控件或是否有任何包含字幕的开源视频播放器项目?
对于这种情况有哪些选择?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该可以解决问题。
我在 xda-devs 上遇到的一些事情
http://forum.xda-developers.com/showthread.php?t=890761
Mplayer 最近被移植到 Android 上。
MPlayer 的源码在这里
http://www.mplayerhq.hu/design7/dload.html
祝你好运!
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!
我不知道有什么方法可以在 Android 上本地显示字幕。但是,如果字幕采用 .srt 格式,则解析它们会很容易:您只需将它们覆盖在正在播放视频的 VideoView 控件上即可。
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.