Re: How to capture a video stream
Re: How to capture a video stream
- Subject: Re: How to capture a video stream
- From: Quincey Morris <email@hidden>
- Date: Tue, 04 Dec 2012 16:56:13 -0800
On Dec 4, 2012, at 16:50 , email@hidden wrote:
> The setSampleBufferDelegate:self queue:queue gives a warning in XCode that
> says Sending '<my object name here>' to parameter of incompatible type
> 'id'<AVCaptureVideoDataOutputSampleBufferDelegate>'
You need to declare the class of 'self' as conforming to the AVCaptureVideoDataOutputSampleBufferDelegate protocol. So, for example, if 'self' is your app delegate, of class MyAppDelegate, then in the header file instead of this:
@interface MyAppDelegate : NSObject
you'd put this:
@interface MyAppDelegate : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>
_______________________________________________
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