任何本机视频控件都支持字幕吗?

发布于 2024-09-18 00:13:16 字数 224 浏览 1 评论 0原文

我正在编写一个带有一些嵌入式视频内容的应用程序,我的目标是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

嘿嘿嘿 2024-09-25 00:13:16

这应该可以解决问题。

我在 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!

苍景流年 2024-09-25 00:13:16

我不知道有什么方法可以在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文