Java:跨平台.flv播放

发布于 2024-07-30 01:24:29 字数 281 浏览 4 评论 0原文

我正在寻找一种使用 java 播放 .flv 文件的方法。 这意味着我需要一个跨平台的 ffmpeg 库。 我一直在玩弄 jmf 和 fobs4jmf,但我无法在 Linux 中播放,因为我需要一个本机库(也许是 fobs4jmf.so?)。

除了 fobs4jmf 之外,还有什么 Java 库可以让我播放 .flv 吗? 或者fobs4jmf可以在linux、mac等上使用吗? 一个纯java库就完美了!

编辑:播放器将部署为 java web start 应用程序(针对 jre6)。

I'm looking for a way to playback .flv files using java. This means I will need a ffmpeg lib that is cross-platform. I've been toying with jmf and fobs4jmf, but I cannot playback in linux because I need a native library (maybe fobs4jmf.so?).

Is there any java lib that allows me to playback .flv besides fobs4jmf? Or fobs4jmf can be used in linux, mac, etc? A pure-java lib would be perfect!

Edit: The player will be deployed as a java web start app (targetting jre6).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

倚栏听风 2024-08-06 01:24:29

我可能没有正确阅读你的问题,但我不明白你反对 fobs4jmf 的理由。 它似乎很好地支持 Mac 和 Linux,请参阅 http://fobs.sourceforge.net/f4jmf_first.html< /a>

I'm probably not reading your question correctly, but I don't understand what you have against fobs4jmf. It seems to support Mac and Linux fine, see http://fobs.sourceforge.net/f4jmf_first.html

臻嫒无言 2024-08-06 01:24:29

我会使用一个公然的捷径。 使用嵌入式浏览器并让它使用浏览器的 flash 插件播放文件。

http://www.eclipse.org/swt/snippets/#browser

这里如何在您的应用程序中嵌入浏览器,并通过一个非常简单的嵌入式 Web 服务器传递内容。 我确信你可以在谷歌的帮助下选择一个播放 flv 的 Flash 应用程序,没有问题。

i would use a blatant shortcut. use an embedded browser and have it play the file using the browser's flash plugin.

http://www.eclipse.org/swt/snippets/#browser

heres how to embed a browser in your app, and just deliver it content through a really simple embedded web server. im sure you can just pickup a flash app that plays flv's no problem with the help of google.

明天过后 2024-08-06 01:24:29

Xuggler 适用于 Linux、Mac 和 Windows。 我想这会成功的。

Xuggler works on Linux, Mac and Windows. I think it'll do the trick.

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