Java Media Framework 视频源窗口

发布于 2024-10-10 00:32:02 字数 139 浏览 0 评论 0原文

我正在编写一个将在 Windows 上运行并使用 JMF 的 java 应用程序,我已经可以进行视频捕获,但我需要在每次启动应用程序时阻止视频源窗口弹出,这是第一次我使用过 JMF,但是我查看了 Api 并进行了谷歌搜索,但没有发现任何有关视频源窗口的内容。谢谢。

I'm writing a java App thats going to run on windows and uses the JMF, I've got the video capture working but I need to stop the Video Source Window from popping up each time I start the App, this is the first time I've used the JMF however I've looked at the Api and googled but found nothing that talks about the Video Source Window. Thanks.

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

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

发布评论

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

评论(1

揽月 2024-10-17 00:32:02

您很可能是这样创建窗口的:

ml 是您的 MediaLocator
videoPanel 也是您添加视频窗口的地方


Player player = Manager.createRealizedPlayer(ml);
Component video = player.getVisualComponent();
video.setSize(videoPanel.getSize());
video.setPreferredSize(videoPanel.getPreferredSize());
videoPanel.add(video);
player.start();

一个简单的解决方案是不将视频组件添加到面板并调用 player.stop();

但没有任何示例你的代码,我所能做的就是推测。

希望这有帮助

Most likely you created your window like this:

ml is your MediaLocator
videoPanel is where your adding the video window too


Player player = Manager.createRealizedPlayer(ml);
Component video = player.getVisualComponent();
video.setSize(videoPanel.getSize());
video.setPreferredSize(videoPanel.getPreferredSize());
videoPanel.add(video);
player.start();

A simple solution would then to not add the video component to a panel and call player.stop();

But without any example of your code, all I can do is speculate.

Hope this helps

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