Table of Contents

Class DemuxerSourceSettings

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

Demuxer source settings.

public class DemuxerSourceSettings : IMediaPlayerBaseSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Constructors

DemuxerSourceSettings()

Initializes a new instance of the VisioForge.Core.Types.X.Sources.DemuxerSourceSettings class with sensible defaults for a JSON-loaded source: video and audio rendered, no subtitles. The filename is left null and is expected to be set from the document payload or a host-provided resource before the block is used.

public DemuxerSourceSettings()

Properties

Filename

Gets or sets the file name. The setter is public so a pipeline document can carry a local source through the JSON persistence layer. Changing the file invalidates any cached media info.

public string Filename { get; set; }

Property Value

string

RenderAudio

Gets or sets whether to render audio. Defaults to true.

public bool RenderAudio { get; set; }

Property Value

bool

RenderSubtitle

Gets or sets whether to render subtitles. Defaults to false.

public bool RenderSubtitle { get; set; }

Property Value

bool

RenderVideo

Gets or sets whether to render video. Defaults to true.

public bool RenderVideo { get; set; }

Property Value

bool

Methods

CreateAsync(string, bool, bool, bool)

Create as an asynchronous operation.

public static Task<DemuxerSourceSettings> CreateAsync(string filename, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false)

Parameters

filename string

The filename.

renderVideo bool

if set to true [render video].

renderAudio bool

if set to true [render audio].

renderSubtitle bool

if set to true [render subtitle].

Returns

Task<DemuxerSourceSettings>

A Task<DemuxerSourceSettings> 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.

ReadInfoAsync()

Read information as an asynchronous operation.

public Task<MediaFileInfo> ReadInfoAsync()

Returns

Task<MediaFileInfo>

A Task<MediaFileInfo> representing the asynchronous operation.