如何在 Java Swing 中播放视频?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4569490/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to play video in Java Swing?
提问by PrashantAdesara
How to play a video in Java Swing? Is there any Swing components for this?
如何在 Java Swing 中播放视频?是否有任何 Swing 组件?
采纳答案by Thorbj?rn Ravn Andersen
Have a look at FMJ - http://fmj-sf.net/
看看 FMJ - http://fmj-sf.net/
回答by asela38
I suppose this will solve your problem : How to use JVLC (Java bindings for VLC)?
我想这会解决您的问题:How to use JVLC (Java bindings for VLC)?
回答by Antony Ng
vlcj is a very nice library for playing video in Java Swing, but it needs to have VLC installed on user's computer first:
vlcj 是一个非常好的在 Java Swing 中播放视频的库,但它需要先在用户的计算机上安装 VLC:
回答by Codemwnci
What you are looking for is JMF (Java Media Framework).
您正在寻找的是 JMF(Java 媒体框架)。
You can find some tutorials on how to use it in the SO question below.
您可以在下面的 SO 问题中找到有关如何使用它的一些教程。