• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to capture a video stream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to capture a video stream
      • From: email@hidden
References: 
 >How to capture a video stream (From: email@hidden)
 >Re: How to capture a video stream (From: Quincey Morris <email@hidden>)
 >Re: How to capture a video stream (From: email@hidden)
 >Re: How to capture a video stream (From: email@hidden)

  • Prev by Date: Re: NSOperation Efficiency
  • Next by Date: Re: How to capture a video stream
  • Previous by thread: Re: How to capture a video stream
  • Next by thread: Re: How to capture a video stream
  • Index(es):
    • Date
    • Thread