开发者

How can I find the typelib identifier of the DirectShow interfaces for use with COM4j

开发者 https://www.devze.com 2023-01-10 15:13 出处:网络
I\'m trying to interact with a webcam from Java on Windows (without going through the FMJ or JMF frameworks) by using COM4j.However, I\'m unable to find the typelib identifier for Direct Show in order

I'm trying to interact with a webcam from Java on Windows (without going through the FMJ or JMF frameworks) by using COM4j. However, I'm unable to find the typelib identifier for Direct Show in order to build the interfaces. The COM4j site recommends using OleVie开发者_StackOverfloww to find the typelib, but I've gone through the list of typelibs there and have had no luck finding anything that looks like it might provide the DirectShow interfaces.


Loathe as I am to provide a link that might be dead tomorrow, the only help I found was this site which contains a link to a tlb file for the DirectShow interfaces. The COM4j library can interact with this file to generate its interfaces.

Curiously, it didn't create a ClassFactory method for creating the interface I needed, possibly because the ClassFactory naming convention is to name a method 'createXXX' where XXX is the name of the interface, and the interface in question is createDevEnum. However a little manual tweaking to the ClassFactory class fixed this.

0

精彩评论

暂无评论...
验证码 换一张
取 消