[Pythonmac-SIG] QuickTime.Qt beta & SequenceGrabber,
anybody use it?
bob at redivi.com
Tue Aug 17 00:11:23 CEST 2004
On Aug 16, 2004, at 5:50 PM, Jerome wrote:
> On Mon, 16 Aug 2004 00:29:41 +0200, Jack Jansen <jack.jansen at cwi.nl>
>> On 5 Aug 2004, at 16:17, Jerome wrote:
>>> I'm trying to figure out how to use SequenceGrabber component in
>>> QuickTime beta 0.2 for python
>>> it seems to have all the functions except i can't find out how to
>>> create the component to start
>>> in Carbon it's mySeqGrab =
>>> OpenDefaultComponent(SeqGrabberComponentType, 0) or something like
>>> then you can call stuff like SGInitialize(mySeqGrab)
>> You should be able to get at the component manager through Carbon.Cm,
>> so Carbon.Cm.OpenDefaultComponent() is the routine you want.
>> But note that the component manager is (a) rather old code, (b) hardly
>> ever used, at least by me, so (c) only very lightly tested. So: if it
>> doesn't work then the fault is probably mine.
>> Please report back here whether it works. And if you can come up with
>> sufficiently simple example that would be very much appreciated too!
> thanks, that's a start, problem is the
> Carbon.Cm.OpenDefaultComponent() won't allow a 0 for 2nd argument to
> allow any subtype, so i dont know how to try my example otherwise,
> putting other subtypes just get null componentInstances
It's an OSType, so use '\x00\x00\x00\x00' (there might be an alias for
that somewhere.. but I never remember it).
More information about the Pythonmac-SIG