Re: Turning off screen shot ability
Re: Turning off screen shot ability
- Subject: Re: Turning off screen shot ability
- From: Richard Heard <email@hidden>
- Date: Thu, 07 Mar 2013 01:47:47 -0800
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+RHPreventCaptureAdditions.m
-Richard
On 06/03/2013, at 11:41:16 PM, Scott Ribe <email@hidden> wrote:
>
> On Mar 7, 2013, at 12:23 AM, Jens Alfke wrote:
>
>> On Mar 6, 2013, at 5:56 PM, Charles Srstka <email@hidden> 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
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden