Safe/Unsafe patches only important if the 3rd party application using Quicktime 
to play the QC composition, like Modul8. Other QC hosts like CoGe, VDMX, 
Resolume, etc. uses the QCRenderer API to playback compositions, this way 
safe/unsafe patches don't bother anything (anyway, all 3rd party QC plugins are 
unsafe).

I think to problem with your movie player plugin is Quicktime/QTKit is not 
thread-safe at all, you need to initialise and call some of the important 
methods on the main-thread. The QC editor works on the main thread, so I guess 
why your plugin works in the editor, but 3rd party QC-capable application 
mostly runs QC compositions on a background thread.

I'm working a custom plugin for my app CoGe which works great, you can look 
into the source to see what methods should be called from the main-thread: 
http://code.google.com/p/cogemovieplayer/source/browse/trunk/CoGeMoviePlayerPlugIn.m


Tamas

On Aug 1, 2012, at 2:41 AM, Callum <callu...@xtra.co.nz> wrote:

> I have an application where I need to make a Quartz movie using Quartz 
> Composer and a custom plugin and have it run in a 3rd party application which 
> is capable of playing Quartz movies.
>  
> As a first step I successfully developed my custom plug in using Xcode and 
> 'built' a composition in Quartz Composer.  I got this all running in Quartz 
> Composer and this works totally fine in the viewer inside Quartz Composer.
>  
> Subsequently I tried to play it in the 3rd party application and it would not 
> play, other parts of the movie played but my plugin simply did not function.  
> I then tried QuickTime player and on one machine it behaved exactly the same 
> - movie played but my plugin didn't function.  On another machine I get the 
> error "Quicktime player quit unexpectedly while using the "My Plugin Name" 
> plug-in.
>  
> After this I was a little baffled and I read the forums and I came across the 
> notion of Safe and Unsafe patches.  I am wondering if this is why my patch 
> doesn't work in applications other than Quartz composer.
>  
> If I enable the "Indicate Unsafe Patches" menu item then it shows an unlocked 
> padlock icon on plug in presumably indicating it is in fact Unsafe.
>  
> Some questions:
>  
> Am I on the right track, is it not playing my custom plugin because it is 
> considered unsafe? 
> How can I tell 'an application' or the system that it is safe? 
> What is the correct way to achieve what I am wanting to do? 
> Any other ideas, useful information welcome. 
>   
> I should also say I am mostly a Windows developer so I am new to Quartz 
> technology and developing on a Mac. 
>   
> Thank you, 
> Kind Regards, 
> Callum. 
>  
>  
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/quartzcomposer-dev/info%40cogevj.hu
> 
> This email sent to i...@cogevj.hu





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to