Class AVCaptureSource
An AV capture source.
Inheritance
System.Object
MediaSource<IVideoOutput, IVideoInput, IVideoInputCollection, VideoSource, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
AVCaptureSource
Implements
IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
IAVCaptureVideoDataOutputSampleBufferDelegate
Inherited Members
Namespace: FM.LiveSwitch.Cocoa
Assembly: FM.LiveSwitch.Cocoa.dll
Syntax
public class AVCaptureSource : CameraSourceBase, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement, IAVCaptureVideoDataOutputSampleBufferDelegate
Constructors
AVCaptureSource(AVCapturePreview, VideoConfig)
Initializes a new instance of the AVCaptureSource class.
Declaration
public AVCaptureSource(AVCapturePreview preview, VideoConfig config)
Parameters
Type | Name | Description |
---|---|---|
AVCapturePreview | preview | The preview. |
VideoConfig | config | The configuration. |
AVCaptureSource(VideoConfig)
Initializes a new instance of the AVCaptureSource class.
Declaration
public AVCaptureSource(VideoConfig targetConfig)
Parameters
Type | Name | Description |
---|---|---|
VideoConfig | targetConfig | The configuration. |
Properties
BackInput
Gets the back input.
Declaration
public SourceInput BackInput { get; }
Property Value
Type | Description |
---|---|
SourceInput | The back input. |
Device
Gets or sets the device.
Declaration
public AVCaptureDevice Device { get; }
Property Value
Type | Description |
---|---|
AVCaptureDevice | The device. |
FrontInput
Gets the front input.
Declaration
public SourceInput FrontInput { get; }
Property Value
Type | Description |
---|---|
SourceInput | The front input. |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
Session
Gets or sets the session.
Declaration
public AVCaptureSession Session { get; }
Property Value
Type | Description |
---|---|
AVCaptureSession | The session. |
Methods
DidOutputSampleBuffer(AVCaptureOutput, CMSampleBuffer, AVCaptureConnection)
Dids the output sample buffer.
Declaration
public void DidOutputSampleBuffer(AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection captureConnection)
Parameters
Type | Name | Description |
---|---|---|
AVCaptureOutput | captureOutput | The capture output. |
CMSampleBuffer | sampleBuffer | The sample buffer. |
AVCaptureConnection | captureConnection | The capture connection. |
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.DoStart()
DoStop()
Stops this instance.
Declaration
protected override Future<object> DoStop()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.DoStop()
GetInputs()
Gets the available inputs.
Declaration
public override Future<SourceInput[]> GetInputs()
Returns
Type | Description |
---|---|
Future<SourceInput[]> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoSource, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.GetInputs()
Implements
IAVCaptureVideoDataOutputSampleBufferDelegate