Class UniversalSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Universal source settings.
public class UniversalSourceSettings : IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
DisableHWDecoders
Gets or sets a value indicating whether HW decoders will be disabled.
public bool DisableHWDecoders { get; set; }Property Value
MPEGTSProgramNumber
Gets or sets the MPEG-TS program number (optional).
public int MPEGTSProgramNumber { get; set; }Property Value
RenderAudio
The render audio.
public bool RenderAudio { get; }Property Value
RenderSubtitle
The render subtitle.
public bool RenderSubtitle { get; }Property Value
RenderVideo
The render video.
public bool RenderVideo { get; }Property Value
StartPosition
Start position.
public TimeSpan? StartPosition { get; set; }Property Value
StopPosition
Stop position.
public TimeSpan? StopPosition { get; set; }Property Value
URI
Gets the URI.
public Uri URI { get; }Property Value
UseAdvancedEngine
Gets or sets a value indicating whether to use advanced engine, with stream selection support.
public bool UseAdvancedEngine { get; set; }Property Value
VideoCustomFrameRate
Gets or sets the video custom frame rate. If not set, then source frame rate will be used. Video frames will be dropped or duplicated to match this frame rate.
public VideoFrameRate? VideoCustomFrameRate { get; set; }Property Value
Methods
CheckURI()
Checks the URI.
public bool CheckURI()Returns
- bool
-
bool.
CreateAsync(string, bool, bool, bool, bool)
Create as an asynchronous operation.
public static Task<UniversalSourceSettings> CreateAsync(string filename, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool deepDiscovery = false)Parameters
filenamestring-
The file name.
renderVideobool-
if set to
truerender video. renderAudiobool-
if set to
truerender audio. renderSubtitlebool-
if set to
true[render subtitle]. deepDiscoverybool-
if set to
trueuse deep discovery mode with uridecodebin for more thorough media analysis.
Returns
- Task<UniversalSourceSettings>
-
A Task<UniversalSourceSettings> representing the asynchronous operation.
CreateAsync(Uri, bool, bool, bool, bool, bool)
Create as an asynchronous operation.
public static Task<UniversalSourceSettings> CreateAsync(Uri uri, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool ignoreMediaInfoReader = false, bool deepDiscovery = false)Parameters
uriUri-
The URI.
renderVideobool-
if set to
truerender video. renderAudiobool-
if set to
truerender audio. renderSubtitlebool-
if set to
truerender subtitle. ignoreMediaInfoReaderbool-
if set to
trueignore media information reader. deepDiscoverybool-
if set to
trueuse deep discovery mode with uridecodebin for more thorough media analysis.
Returns
- Task<UniversalSourceSettings>
-
A Task<UniversalSourceSettings> representing the asynchronous operation.
CreateBlock()
Creates the block.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
MediaBlock.
GetInfo()
Gets the file information.
public MediaFileInfo GetInfo()Returns
- MediaFileInfo
-
MediaFileInfo.
Remarks
If VideoCustomFrameRate is set you'll have this value as a frame rate.
ReadInfoAsync()
Read information as an asynchronous operation.
public Task<MediaFileInfo> ReadInfoAsync()Returns
- Task<MediaFileInfo>
-
A Task<MediaFileInfo> representing the asynchronous operation.
ReadInfoAsync(bool)
Read information as an asynchronous operation.
public Task<MediaFileInfo> ReadInfoAsync(bool deepDiscovery)Parameters
deepDiscoverybool-
if set to
trueuse deep discovery mode with uridecodebin for more thorough media analysis.
Returns
- Task<MediaFileInfo>
-
A Task<MediaFileInfo> representing the asynchronous operation.