Class MediaCaptureVideoSource
A MediaCapture-based video source.
Inheritance
System.Object
MediaSource<IVideoOutput, IVideoInput, IVideoInputCollection, VideoSource, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
MediaCaptureVideoSource
Implements
Inherited Members
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.dll
Syntax
public class MediaCaptureVideoSource : CameraSourceBase, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
MediaCaptureVideoSource(VideoConfig)
Initializes a new instance of the MediaCaptureVideoSource class.
Declaration
public MediaCaptureVideoSource(VideoConfig targetConfig)
Parameters
Type | Name | Description |
---|---|---|
VideoConfig | targetConfig |
Properties
BackInput
Gets the back input.
Declaration
public Future<SourceInput> BackInput { get; }
Property Value
Type | Description |
---|---|
Future<SourceInput> |
CaptureElement
Gets the capture element.
Declaration
public CaptureElement CaptureElement { get; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.CaptureElement |
FrontInput
Gets the front input.
Declaration
public Future<SourceInput> FrontInput { get; }
Property Value
Type | Description |
---|---|
Future<SourceInput> |
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
MediaCapture
Gets the media capture.
Declaration
public MediaCapture MediaCapture { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Capture.MediaCapture |
Methods
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 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()