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, IMediaBlockInternalsInheritance
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
renderVideobool-
if set to
truerender video. renderAudiobool-
if set to
truerender audio. renderSubtitlebool-
if set to
truerender subtitle. renderMetadatabool-
if set to
truerender 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
mediaInfoMediaFileInfo-
The media file information containing stream details.
renderVideobool-
if set to
truerender video. renderAudiobool-
if set to
truerender audio. renderSubtitlebool-
if set to
truerender subtitle. renderMetadatabool-
if set to
truerender metadata.
Properties
AudioOutput
Gets the first audio output for backward compatibility.
public MediaBlockPad AudioOutput { get; }Property Value
AudioOutputs
Gets the audio outputs for multiple streams.
public List<MediaBlockPad> AudioOutputs { get; }Property Value
Input
Gets the input.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets the inputs.
public override MediaBlockPad[] Inputs { get; }Property Value
MetadataOutput
Gets the meta output.
public MediaBlockPad MetadataOutput { get; }Property Value
Output
Gets the output.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets the outputs.
public override MediaBlockPad[] Outputs { get; }Property Value
Settings
Gets the settings.
public MPEGTSDemuxSettings Settings { get; }Property Value
SubtitleOutput
Gets the first subtitle output for backward compatibility.
public MediaBlockPad SubtitleOutput { get; }Property Value
SubtitleOutputs
Gets the subtitle outputs for multiple streams.
public List<MediaBlockPad> SubtitleOutputs { get; }Property Value
Type
Gets the type.
public override MediaBlockType Type { get; }Property Value
VideoOutput
Gets the first video output for backward compatibility.
public MediaBlockPad VideoOutput { get; }Property Value
VideoOutputs
Gets the video outputs for multiple streams.
public List<MediaBlockPad> VideoOutputs { get; }Property Value
Methods
Build()
Builds this instance.
public override bool Build()Returns
- bool
-
trueif successfull,falseotherwise.
CleanUp()
Cleans up.
public void CleanUp()Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto 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
-
trueif this media block is available; otherwise,false.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The pipeline.