Table of Contents

Class UniversalSourceSettings

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

Universal source settings.

public class UniversalSourceSettings : IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoMixerSource, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Properties

DisableHWDecoders

Gets or sets a value indicating whether HW decoders will be disabled.

public bool DisableHWDecoders { get; set; }

Property Value

bool

MPEGTSProgramNumber

Gets or sets the MPEG-TS program number (optional).

public int MPEGTSProgramNumber { get; set; }

Property Value

int

RenderAudio

The render audio.

public bool RenderAudio { get; }

Property Value

bool

RenderSubtitle

The render subtitle.

public bool RenderSubtitle { get; }

Property Value

bool

RenderVideo

The render video.

public bool RenderVideo { get; }

Property Value

bool

StartPosition

Start position.

public TimeSpan? StartPosition { get; set; }

Property Value

TimeSpan?

StopPosition

Stop position.

public TimeSpan? StopPosition { get; set; }

Property Value

TimeSpan?

URI

Gets the URI.

public Uri URI { get; }

Property Value

Uri

UseAdvancedEngine

Gets or sets a value indicating whether to use advanced engine, with stream selection support.

public bool UseAdvancedEngine { get; set; }

Property Value

bool

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

VideoFrameRate?

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

filename string

The file name.

renderVideo bool

if set to true render video.

renderAudio bool

if set to true render audio.

renderSubtitle bool

if set to true [render subtitle].

deepDiscovery bool

if set to true use 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

uri Uri

The URI.

renderVideo bool

if set to true render video.

renderAudio bool

if set to true render audio.

renderSubtitle bool

if set to true render subtitle.

ignoreMediaInfoReader bool

if set to true ignore media information reader.

deepDiscovery bool

if set to true use 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

deepDiscovery bool

if set to true use deep discovery mode with uridecodebin for more thorough media analysis.

Returns

Task<MediaFileInfo>

A Task<MediaFileInfo> representing the asynchronous operation.