Table of Contents

Class MPEGTSDemuxBlock

Namespace
VisioForge.Core.MediaBlocks.Sources
Assembly
VisioForge.Core.dll

MPEG-TS demux block. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class MPEGTSDemuxBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

MPEGTSDemuxBlock(bool, bool, bool, bool)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.MPEGTSDemuxBlock class.

public MPEGTSDemuxBlock(bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool renderMetadata = false)

Parameters

renderVideo bool

if set to true render video.

renderAudio bool

if set to true render audio.

renderSubtitle bool

if set to true render subtitle.

renderMetadata bool

if set to true render metadata.

MPEGTSDemuxBlock(MediaFileInfo, bool, bool, bool, bool)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.MPEGTSDemuxBlock class with MediaFileInfo for multiple stream support.

public MPEGTSDemuxBlock(MediaFileInfo mediaInfo, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false, bool renderMetadata = false)

Parameters

mediaInfo MediaFileInfo

The media file information containing stream details.

renderVideo bool

if set to true render video.

renderAudio bool

if set to true render audio.

renderSubtitle bool

if set to true render subtitle.

renderMetadata bool

if set to true render metadata.

Properties

AudioOutput

Gets the first audio output for backward compatibility.

public MediaBlockPad AudioOutput { get; }

Property Value

MediaBlockPad

AudioOutputs

Gets the audio outputs for multiple streams.

public List<MediaBlockPad> AudioOutputs { get; }

Property Value

List<MediaBlockPad>

Input

Gets the input.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets the inputs.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

MetadataOutput

Gets the meta output.

public MediaBlockPad MetadataOutput { get; }

Property Value

MediaBlockPad

Output

Gets the output.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets the outputs.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets the settings.

public MPEGTSDemuxSettings Settings { get; }

Property Value

MPEGTSDemuxSettings

SubtitleOutput

Gets the first subtitle output for backward compatibility.

public MediaBlockPad SubtitleOutput { get; }

Property Value

MediaBlockPad

SubtitleOutputs

Gets the subtitle outputs for multiple streams.

public List<MediaBlockPad> SubtitleOutputs { get; }

Property Value

List<MediaBlockPad>

Type

Gets the type.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

VideoOutput

Gets the first video output for backward compatibility.

public MediaBlockPad VideoOutput { get; }

Property Value

MediaBlockPad

VideoOutputs

Gets the video outputs for multiple streams.

public List<MediaBlockPad> VideoOutputs { get; }

Property Value

List<MediaBlockPad>

Methods

Build()

Builds this instance.

public override bool Build()

Returns

bool

true if successfull, false otherwise.

CleanUp()

Cleans up.

public void CleanUp()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

GetCore()

Gets core.

public BaseElement GetCore()

Returns

BaseElement

VisioForge.Core.GStreamer.Base.BaseElement.

GetElement()

Gets the element.

public Element GetElement()

Returns

Element

Gst.Element.

IsAvailable()

Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.

public static bool IsAvailable()

Returns

bool

true if this media block is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The pipeline.

See Also