I have the basics of my application working. I need to figure out
if I have endian issues on an Intel machine need to be addressed
(see other thread). However my other concern right now is making
the application more user friendly.
On thing I want to do is something I have seen in iMovie. I want to
display a blue screen when there is no camera connection. And then
when a camera is plugged in, start showing a preview from the
camera. Are there any samples that show how to do this? I can loop
on SGNewChannel and wait for it to return noErr. But is there a
better way? Any samples? And if the camera is disconnected, how can
I tell?
How about just painting your view's background blue whenever you call
SGStop()?
Also, what about multiple camera's connected? E.g. an iSight and a
DV camera, or two DV cameras. Is there a way to find out about this
and then present the user with a menu so they can select which
camera to use?
The answer to your question is -- read up on SGGetChannelDeviceList
(). This call gives you a good deal of info about devices attached
to the system, and whether they are currently disconnected. Googling
this function call should yield some good sample code.
-Brad Ford
QuickTime Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden