I puzzled over that a bit too, but you can get the a connection by asking for the current connections array from your QTCaptureVideoPreviewOutput object since it is a subclass of a QTCaptureOutput, and getting the the last or first object in the connections array, because typically you will only have one connection. This is at least how it was in one of the QT Capture examples:
mCapturePreviewOutput is a QTCaptureVideoPreviewOutput :)
Slightly more minor question, is there a way to find out what resolution the capture device uses? I can figure out the size in the Core Video callback with CVOpenGLTextureGetCleanTexCoords() which you told me about earlier today. But my test code still (badly) likes to preallocate things at startup rather than do it in the callback. So I was wondering if there was a way to get this value before I start.
I tried QTCaptureDevice deviceAttributes, but I'm getting an empty dictionary for the Logitech camera I currently have in front of me. (I don't have an iSight to test with at the moment.)
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden