Re: How to set up my NSViews?
Re: How to set up my NSViews?
- Subject: Re: How to set up my NSViews?
- From: Andreas Falkenhahn <email@hidden>
- Date: Wed, 07 Sep 2016 17:00:30 +0200
On 06.09.2016 at 20:12 Richard Charles wrote:
> Use AVPlayerLayer which is a subclass of CALayer. Set your parent
> NSView as a layer backed view or as a layer hosting view. This
> process can be a little confusing.
> Refer to Setting Up Layer Objects.
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreAnimation_guide/SettingUpLayerObjects/SettingUpLayerObjects.html
Thanks, that did the trick! I don't need AVPlayerView at all, I can just
use an AVPlayerLayer and add this as a sublayer to my NSView's layer. Seems
to work fine so far. Thanks for the hint! Another advantage is that AVPlayerLayer
is available in 10.7 whereas AVPlayerView requires 10.9.
--
Best regards,
Andreas Falkenhahn mailto: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