Class VideoSource
A Matroska-file-based video source.
Inheritance
System.Object
MediaSource<IVideoOutput, IVideoInput, IVideoInputCollection, VideoSource, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
VideoSource
Implements
Inherited Members
Namespace: FM.LiveSwitch.Matroska
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class VideoSource : VideoSource, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
VideoSource(String)
Initializes a new instance of the VideoSource class.
Declaration
public VideoSource(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path. |
Properties
Label
Gets the label.
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
Path
Gets the path.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String |
StopCaptureOnEnd
Gets or sets whether capturing should stop when the file ends. Default: false.
Declaration
public bool StopCaptureOnEnd { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateH264Decoder()
Creates an H.264 decoder.
Declaration
protected abstract VideoDecoder CreateH264Decoder()
Returns
Type | Description |
---|---|
VideoDecoder |
CreateH265Decoder()
Creates an H.265 decoder.
Declaration
protected virtual VideoDecoder CreateH265Decoder()
Returns
Type | Description |
---|---|
VideoDecoder |
CreateVp8Decoder()
Creates a VP8 decoder.
Declaration
protected abstract VideoDecoder CreateVp8Decoder()
Returns
Type | Description |
---|---|
VideoDecoder |
CreateVp9Decoder()
Creates a VP9 decoder.
Declaration
protected abstract VideoDecoder CreateVp9Decoder()
Returns
Type | Description |
---|---|
VideoDecoder |
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
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>.DoDestroy()
DoStart()
Starts the source.
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 the source.
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 source inputs (tracks).
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()
Events
OnEnded
Raised when the file ends.
Declaration
public event Action0 OnEnded
Event Type
Type | Description |
---|---|
Action0 |