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 |
---|---|---|
AVCapture |
preview | The preview. |
Video |
config | The configuration. |
AVCaptureSource(VideoConfig)
Initializes a new instance of the AVCaptureSource class.
Declaration
public AVCaptureSource(VideoConfig targetConfig)
Parameters
Type | Name | Description |
---|---|---|
Video |
targetConfig | The configuration. |
Properties
BackInput
Gets the back input.
Declaration
public SourceInput BackInput { get; }
Property Value
Type | Description |
---|---|
Source |
The back input. |
Device
Gets or sets the device.
Declaration
public AVCaptureDevice Device { get; }
Property Value
Type | Description |
---|---|
AVCapture |
The device. |
FrontInput
Gets the front input.
Declaration
public SourceInput FrontInput { get; }
Property Value
Type | Description |
---|---|
Source |
The front input. |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|
AVCapture |
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 |
---|---|---|
AVCapture |
captureOutput | The capture output. |
CMSample |
sampleBuffer | The sample buffer. |
AVCapture |
captureConnection | The capture connection. |
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System. |
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. |
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<Source |
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