Whoa!  I fired that off without thinking.  The problem was with
AVCapturePreviewLayer, not AVPlayerLayer.  I logged that and apparently it
sets it to YES internally.  I set it to NO and am now getting a shadow for
the unmasked version.  However, I do (optionally) apply a shaped masking
layer, which kills the shadow.  If I remember correctly, I did not have this
problem with QTCapturePreviewLayer using the same code.  But at least now, I
have something to look into.  Thanks.


On 1/3/14 4:29 PM, "Gordon Apple" <g...@ed4u.com> wrote:

> The default of masksToBounds in CALayer is NO.  I had my subclass of
> AVPlayerLayer log it, and it does show it is still NO.
> 
> On 1/3/14 3:18 PM, "David Duncan" <david.dun...@apple.com> wrote:
> 
>> On Jan 3, 2014, at 11:09 AM, Gordon Apple <g...@ed4u.com> wrote:
>> 
>>> David,
>>> 
>>> Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow,
>>> when there is no such problem with QTMovieLayer in the same environment...
>> 
>> Is masksToBounds set to YES on the layer?
>> --
>> David Duncan
>> 
>> 
> 


_______________________________________________

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