1. <i id='7wtnc'><tr id='7wtnc'><dt id='7wtnc'><q id='7wtnc'><span id='7wtnc'><b id='7wtnc'><form id='7wtnc'><ins id='7wtnc'></ins><ul id='7wtnc'></ul><sub id='7wtnc'></sub></form><legend id='7wtnc'></legend><bdo id='7wtnc'><pre id='7wtnc'><center id='7wtnc'></center></pre></bdo></b><th id='7wtnc'></th></span></q></dt></tr></i><div id='7wtnc'><tfoot id='7wtnc'></tfoot><dl id='7wtnc'><fieldset id='7wtnc'></fieldset></dl></div>

    2. <tfoot id='7wtnc'></tfoot>

      <small id='7wtnc'></small><noframes id='7wtnc'>

      <legend id='7wtnc'><style id='7wtnc'><dir id='7wtnc'><q id='7wtnc'></q></dir></style></legend>

          <bdo id='7wtnc'></bdo><ul id='7wtnc'></ul>

        用Java播放视频

        Playing video in Java(用Java播放视频)
        <tfoot id='8jCNV'></tfoot>

            <tbody id='8jCNV'></tbody>
            <bdo id='8jCNV'></bdo><ul id='8jCNV'></ul>
            • <small id='8jCNV'></small><noframes id='8jCNV'>

              <legend id='8jCNV'><style id='8jCNV'><dir id='8jCNV'><q id='8jCNV'></q></dir></style></legend>
              <i id='8jCNV'><tr id='8jCNV'><dt id='8jCNV'><q id='8jCNV'><span id='8jCNV'><b id='8jCNV'><form id='8jCNV'><ins id='8jCNV'></ins><ul id='8jCNV'></ul><sub id='8jCNV'></sub></form><legend id='8jCNV'></legend><bdo id='8jCNV'><pre id='8jCNV'><center id='8jCNV'></center></pre></bdo></b><th id='8jCNV'></th></span></q></dt></tr></i><div id='8jCNV'><tfoot id='8jCNV'></tfoot><dl id='8jCNV'><fieldset id='8jCNV'></fieldset></dl></div>

                  本文介绍了用Java播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要在我的 JFrame 中播放视频.我环顾四周,安装了 Java 媒体框架,尝试了很多方法,媒体面板似乎不起作用,而且我不理解 Player.如果有人能告诉我在 JFrame 中播放视频的简单方法,或者甚至可以告诉我调用哪些方法,那就太好了.

                  I need to play a video in my JFrame. I've looked around and I have installed the Java media framework and I've tried numerous ways, media panel doesn't seem to work and I don't understand Player. If someone could tell me an easy way to play a video inside a JFrame or even which methods to call that would be great.

                  (我的 .avi 文件与 .class 和 .java 文件位于同一目录中)

                  ( I also have the .avi file in the same directory as the .class and .java files )

                  推荐答案

                  JMF基本上死了.

                  我没有使用 Swing 播放视频的第一手经验,但是 这里有一个列表您可以尝试 JMF 的替代品.还有一些关于这个的问题:

                  JMF is basically dead.

                  I don't have first-hand experience with playing video with Swing, but here's a list of alternatives to JMF you might try. There are also a number of SO questions about this already:

                  • 用 Java 播放视频(JMF、Fobs4JMF、Xuggler、FMJ)
                  • JMF 替换

                  基于这些,看起来 Xuggler 是解决方案.

                  Based on those, it looks like Xuggler is the solution.

                  这篇关于用Java播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                    <tbody id='rAUOl'></tbody>

                    <small id='rAUOl'></small><noframes id='rAUOl'>

                    • <legend id='rAUOl'><style id='rAUOl'><dir id='rAUOl'><q id='rAUOl'></q></dir></style></legend>
                      • <bdo id='rAUOl'></bdo><ul id='rAUOl'></ul>

                        1. <tfoot id='rAUOl'></tfoot>

                          • <i id='rAUOl'><tr id='rAUOl'><dt id='rAUOl'><q id='rAUOl'><span id='rAUOl'><b id='rAUOl'><form id='rAUOl'><ins id='rAUOl'></ins><ul id='rAUOl'></ul><sub id='rAUOl'></sub></form><legend id='rAUOl'></legend><bdo id='rAUOl'><pre id='rAUOl'><center id='rAUOl'></center></pre></bdo></b><th id='rAUOl'></th></span></q></dt></tr></i><div id='rAUOl'><tfoot id='rAUOl'></tfoot><dl id='rAUOl'><fieldset id='rAUOl'></fieldset></dl></div>