Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

enumerating video devices programmatically...



I currently have a broadcaster which I use to handle multiple video devices however I've run into some limitations with how I can see what devices are available. Basically I want to let them be chosen via a device index number (device 0,1,2, etc.). I can use the following from the Presentation MediaParams to get the first device in the list of available devices and then iterate through them with getNext() however it won't return any devices which are in use so I can't get the full list of devices if any are in use.

GDevice VideoDevice = mediaParams.getGDHandle().getList();

I did some looking through the javadocs and found that it looks like the following should work, backed up by old mailing list posts. After some testing with QT7 this returns null no matter how many cameras are plugged into the firewire port.

ComponentIdentifier component = null;
ComponentDescription desc = new ComponentDescription (StdQTConstants.videoDigitizerComponentType);
while ((componenet = ComponentIdentifier.find(ci, desc)) != null)


I used an empty componenetdescription to enumerate through all of them and still find nothing which could be a camera.

Does anyone know of how I would go about doing this?

- Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.