| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi ! I am trying to write an application that use the following APIs : - QuartzComposer - QTKit For QC, I use a DisplayLink and QCRenderers. For that part everything works fine :-) For QTKit, I would like to run it in different threads. Why? First QTKit is far more convenient than the QT C API Then, I want to display several videos at the same time and for each, follow a playlist and load the movies in advance. The problem is the following : I can't find a decent thread architecture to make it work. I followed the QTKit FAQ and load my movies in the main thread (performSelectorOnMainThread) Then I detach them and re attach them in a thread that does basic things : start/stop for the moment I call in the thread : if ([nextChannelMovie respondsToSelector:@selector(setIdling:)]) [nextChannelMovie setIdling:NO]; because the QTKit FAQ recommends thisBut if I do it, just the first frames of the movies are rendered. Then it blocks. If I don't, the app crashes after some seconds on QTKit idle management (which is done in the main thread) Please note that I removed any MoviesTask call from a timer in the main thread because I found that in the QTQuartzPlayer example that calling QTVisualContextTask(qtVisualContext); after [_openGLContext flushBuffer]; seemed to be enough Can someone help me finding how to do that idle management correctly? Fabrice www.easyshadow.com International Corporate Consulting Palais de la Scala 1 avenue Henri Dunant Suite 1155 MC - 98000 Monaco Skype: fabrice.pipart Tel. +377 97 98 21 04 (direct) Fax. +377 97 70 88 07 |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.