Java:跨平台.flv播放
我正在寻找一种使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我可能没有正确阅读你的问题,但我不明白你反对 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
我会使用一个公然的捷径。 使用嵌入式浏览器并让它使用浏览器的 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.
你可能想尝试一下 javafx:http://java.lang. dzone.com/news/video-getting-started-with-jav
you probably want a go with javafx in this: http://java.dzone.com/news/video-getting-started-with-jav
Xuggler 适用于 Linux、Mac 和 Windows。 我想这会成功的。
Xuggler works on Linux, Mac and Windows. I think it'll do the trick.