如何在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 07:00:54  来源:igfitidea点击:

How to play video in Java Swing?

javaswingvideo

提问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:

https://github.com/caprica/vlcj

https://github.com/caprica/vlcj

回答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 问题中找到有关如何使用它的一些教程。

where can i find Java JMF tutorial

我在哪里可以找到 Java JMF 教程