JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java SE 討論區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 请教JMF CaptureDeviceManager.getDevice的问题
BraverHamlet





發文: 10
積分: 0
於 2008-05-06 21:29 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
String camera = "vfw:Microsoft WDM Image Capture (Win32):0"; //1
CaptureDeviceInfo captureDeviceInfo = CaptureDeviceManager.getDevice(camera);//2
MediaLocator mediaLocator = captureDeviceInfo.getLocator();//3

code 很简单,第3行出现java.lang.NullPointerException,在第2行CaptureDeviceManager.getDevice(camera)未获得device,试用了CaptureDeviceManager.getDeviceList(null).size()得到的值也为0!
但JMStudio却可以正常取得系统中的视频设备,图像抓取也一切正常,求教问题原因,谢谢!


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
2800 请教JMF CaptureDeviceManager.getDevice的问题 BraverHamlet 431 2008-05-06 21:29
2412 Re:请教JMF CaptureDeviceManager.getDevice的问题 BraverHamlet 40 2008-05-06 21:42
3082 Re:请教JMF CaptureDeviceManager.getDevice的问题 Duncan 699 2008-05-06 23:13
2157 Re:请教JMF CaptureDeviceManager.getDevice的问题 BraverHamlet 125 2008-05-07 22:12
» JWorld@TW »  Java SE 討論區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8