Seeing as this uses non public APIs, i would STRONGLY recommend not using it in 
any shipping applications. 
However, for interests sake alone this is how DVD Player appears to do it.

https://github.com/heardrwt/RHAdditions/blob/master/RHAdditions/NSWindow%2BRHPreventCaptureAdditions.m

-Richard

On 06/03/2013, at 11:41:16 PM, Scott Ribe <scott_r...@elevated-dev.com> wrote:

> 
> On Mar 7, 2013, at 12:23 AM, Jens Alfke wrote:
> 
>> On Mar 6, 2013, at 5:56 PM, Charles Srstka <cocoa...@charlessoft.com> wrote:
>> 
>>> Instead, I'd try to figure out what Apple's DVD player does; it allows you 
>>> to take screenshots all day long, but the copyrighted content gets replaced 
>>> by a solid color.
>> 
>> 
>> If that’s true (I’ve never tried it) then my suspicion is that this is a 
>> side effect of the way the DVD decoding is done — the codec is 
>> hardware-based and may be passing the decoded pixels through a separate 
>> pipeline where they get composited into the video output late in the game, 
>> i.e. the DRM’d pixels never appear in the GPU’s main frame buffer. If so 
>> (and I’m really just making an educated guess) then that technique wouldn’t 
>> be applicable to other apps.
> 
> Nope, FYI, it is not a side effect--it is deliberate and it is required by 
> the licensing terms for DVD playback. It is also apparently easy to 
> circumvent.
> 
> -- 
> Scott Ribe
> scott_r...@elevated-dev.com
> http://www.elevated-dev.com/
> (303) 722-0567 voice
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/heardrwt%40gmail.com
> 
> This email sent to heard...@gmail.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to