Class CameraSourceBase
A base class for camera-based sources.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class CameraSourceBase : VideoSource, IEquatable<NSObject>, INSObjectProtocol, INativeObject, IDisposable, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
CameraSourceBase(VideoFormat, VideoConfig)
Initializes a new instance of the ScreenSourceBase class.
Declaration
public CameraSourceBase(VideoFormat outputFormat, VideoConfig targetConfig)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | outputFormat | The output format. |
VideoConfig | targetConfig | The target configuration. |
Properties
Config
Gets or sets the current config. A value of null indicates unset (pass-through).
Declaration
public virtual VideoConfig Config { get; protected set; }
Property Value
Type | Description |
---|---|
VideoConfig |
FrameRate
Gets or sets the current frame-rate, in fps. A value of -1 indicates unset, and will default to the target frame-rate.
Declaration
public virtual double FrameRate { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
MaxFrameRate
Gets or sets the maximum output frame-rate, in fps. A value of -1 indicates unset (no maximum).
Declaration
public virtual double MaxFrameRate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MaxOutputFrameRate
Gets or sets the maximum allowed output frame-rate, in fps. A value of -1 indicates unset (no maximum).
Declaration
public override double MaxOutputFrameRate { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Overrides
MaxOutputSize
Gets or sets the maximum allowed output size. A value of null indicates unset (no maximum).
Declaration
public override Size MaxOutputSize { get; protected set; }
Property Value
Type | Description |
---|---|
Size |
Overrides
MaxSize
Gets or sets the maximum output size. A value of null indicates unset (no maximum).
Declaration
public virtual Size MaxSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
MaxSupportedFrameRate
Gets the maximum supported frame-rate, in fps. A value of -1 indicates unset (no maximum).
Declaration
public virtual double MaxSupportedFrameRate { get; }
Property Value
Type | Description |
---|---|
System.Double |
MaxSupportedSize
Gets the maximum supported size. A value of null indicates unset (no maximum).
Declaration
public virtual Size MaxSupportedSize { get; }
Property Value
Type | Description |
---|---|
Size |
MinFrameRate
Gets or sets the minimum frame-rate, in fps. A value of -1 indicates unset (no minimum).
Declaration
public virtual double MinFrameRate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MinOutputFrameRate
Gets or sets the minimum allowed output frame-rate, in fps. A value of -1 indicates unset (no minimum).
Declaration
public override double MinOutputFrameRate { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Overrides
MinOutputSize
Gets or sets the minimum allowed output size. A value of null indicates unset (no minimum).
Declaration
public override Size MinOutputSize { get; protected set; }
Property Value
Type | Description |
---|---|
Size |
Overrides
MinSize
Gets or sets the minimum size. A value of null indicates unset (no minimum).
Declaration
public virtual Size MinSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
MinSupportedFrameRate
Gets the minimum supported frame-rate, in fps. A value of -1 indicates unset (no minimum).
Declaration
public virtual double MinSupportedFrameRate { get; }
Property Value
Type | Description |
---|---|
System.Double |
MinSupportedSize
Gets the minimum supported size. A value of null indicates unset (no minimum).
Declaration
public virtual Size MinSupportedSize { get; }
Property Value
Type | Description |
---|---|
Size |
Size
Gets or sets the current size. A value of null indicates unset, and will default to the target size.
Declaration
public virtual Size Size { get; protected set; }
Property Value
Type | Description |
---|---|
Size |
StaticOutputFrameRate
Gets or sets whether MinOutputFrameRate and MaxOutputFrameRate should return MinSupportedFrameRate and MaxSupportedFrameRate, respectively, or response to changes in MinFrameRate and MaxFrameRate.
Declaration
public bool StaticOutputFrameRate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
StaticOutputSize
Gets or sets whether MinOutputSize and MaxOutputSize should return MinSupportedSize and MaxSupportedSize, respectively, or response to changes in MinSize and MaxSize.
Declaration
public bool StaticOutputSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TargetConfig
Gets or sets the target config. A value of null indicates unset (no target).
Declaration
public virtual VideoConfig TargetConfig { get; set; }
Property Value
Type | Description |
---|---|
VideoConfig |
TargetFrameRate
Gets or sets the target frame-rate, in fps.
Declaration
public virtual double TargetFrameRate { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
TargetOutputFrameRate
Gets or sets the target output frame-rate, in fps.
Declaration
public override double TargetOutputFrameRate { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Overrides
TargetOutputSize
Gets or sets the target output size.
Declaration
public override Size TargetOutputSize { get; protected set; }
Property Value
Type | Description |
---|---|
Size |
Overrides
TargetSize
Gets or sets the target size.
Declaration
public virtual Size TargetSize { get; set; }
Property Value
Type | Description |
---|---|
Size |