IAVCaptureVideoDataOutputSampleBufferDelegate Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delegate class used to notify when a sample buffer has been written.
[Foundation.Protocol(Name="AVCaptureVideoDataOutputSampleBufferDelegate", WrapperType=typeof(AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOutputSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didOutputSampleBuffer:fromConnection:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDropSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didDropSampleBuffer:fromConnection:")]
public interface IAVCaptureVideoDataOutputSampleBufferDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="AVCaptureVideoDataOutputSampleBufferDelegate", WrapperType=typeof(AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidOutputSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didOutputSampleBuffer:fromConnection:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDropSampleBuffer", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AVFoundation.AVCaptureOutput), typeof(CoreMedia.CMSampleBuffer), typeof(AVFoundation.AVCaptureConnection) }, Selector="captureOutput:didDropSampleBuffer:fromConnection:")>]
type IAVCaptureVideoDataOutputSampleBufferDelegate = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Remarks
See the sample linked on this page for a complete sample showing how to configure this delegate.
It is worth pointing out that the buffers delivered to the DidOutputSampleBuffer method come from a small pool of buffers in AVFoundation, and failure to call Dispose() on the buffers you receive will block the delivery of further frames.
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Methods
| Name | Description |
|---|---|
| DidDropSampleBuffer(AVCaptureOutput, CMSampleBuffer, AVCaptureConnection) | |
| DidOutputSampleBuffer(AVCaptureOutput, CMSampleBuffer, AVCaptureConnection) | |