First, yes, AVFoundation is the way to go. Second, you can use AVCaptureView or AVCaptureVideoPreviewLayer. II recommend that you don¹t subclass AVCaptureVideoPreviewLayer, but rather embed it in your own custom CALayer. That gives you more freedom of control, and if you want to do things like clipping and add shadows, you can do it. Otherwise the capture layer will clip the shadows.
Our (still unreleased) application allows any number of cameras to be used simultaneously, with individual display parameters. You can even (installing their driver) use a $5 app, PocketCam, as a wireless remote video camera input. On 9/10/15 4:42 AM, "cocoa-dev-requ...@lists.apple.com" <cocoa-dev-requ...@lists.apple.com> wrote: > In a Mac app, I need to display real-time video (as in ³movies²) from a USB > camera on the screen. Can someone please confirm that AVFoundation the way to > go? I¹ve read that QTKit is deprecated but, oddly, I cannot find any mention > of deprecation here in the QTKit Programming Guide: > https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/QTKitAp > plicationProgrammingGuide/ Thank you, Jerry _______________________________________________ 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