无法通过 JMF 检测捕获设备(网络摄像头) [英] Unable to detect Capture Device (webcam) through JMF

查看:42
本文介绍了无法通过 JMF 检测捕获设备(网络摄像头)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JMF 来操作我的网络摄像头.我的 USB 网络摄像头与 JMF 完美配合,但是我在 JMStudio 中使用了它,当我从我的 Java 代码中进行此调用时

I am using JMF to operate my web cam.My usb webcam works perfectly with JMF, I used it in JMStudio however,when I make this call from my java code

deviceListVector = CaptureDeviceManager.getDeviceList( null );

检测到我的 USB网络摄像头",但是当我尝试在我的笔记本电脑上检测网络摄像头时,它没有检测到任何设备.

my USB "webcam" is detected however when i am trying to detect webcam on my laptop it is not detecting any device.

如何通过 JMF API 正确检测笔记本电脑的网络摄像头及其格式?

How can I properly detect the webcam of laptop, and its formats, from JMF API?

推荐答案

  1. 确保您使用它的系统包含所有必需的文件,例如在 Windows 上,它需要某些 dll.最简单的方法是使用安装程序.
  2. 在正确安装 JMF 后,运行 JMFRegistry?,检测摄像头,然后注册和/或保存结果.(在 vista 中,您需要以管理员身份运行它才能正常工作)
  3. 代码现在应该返回设备列表.假设代码已将 jmf.jar 添加到其项目文件中.

您可能对替代方案感兴趣:http://en.wikipedia.org/wiki/Java_Media_Framework#AlternativesFMJ 项目 是一个旨在兼容 API 的项目(并非所有尚未实现)并进行动态设备检测.

You might be interested in alternatives: http://en.wikipedia.org/wiki/Java_Media_Framework#Alternatives The FMJ project is one that is designed to be API compatible(not everything is implemented yet) and does dynamic device detection.

这篇关于无法通过 JMF 检测捕获设备(网络摄像头)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆