Mailing Lists: Apple Mailing Lists

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

Two Cameras Attached, Switching between Cameras



This is probably something simple, but I feel like I've tried
everything and can't figure it out.

Lets say you have two identical IIDC cameras plugged into the same
firewire cable, how would you change which one is the video input to
sequence grabber?

What I've been doing is obviously not working, but here's what I
thought should do the trick, but doesn't:
To try to connect to the non-default camera I've changed this:
   sgCompID = FindNextComponent (0, &theDesc);
   if (sgCompID != 0L)
      gSeqGrabber = OpenComponent (sgCompID);
to this:
   sgCompID = FindNextComponent (0, &theDesc);
   sgCompID = FindNextComponent (sgCompID, &theDesc);
   if (sgCompID != 0L)
      gSeqGrabber = OpenComponent (sgCompID);

This however does not work,  and returns a null sgCompID.  I'm not
sure if this is even where I should be looking to change code.  I've
been using HackTVCarbon as a reference, so if someone could explain
what you would change in that code to access the second camera, that
would be awesome.

Thanks,
Scott
 _______________________________________________
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

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.