Table of Contents

Class RISTMPEGTSSinkBlock

Namespace
VisioForge.Core.MediaBlocks.Sinks
Assembly
VisioForge.Core.dll

RIST MPEG-TS sink block. Multiplexes audio/video into MPEG-TS, payloads via RTP, and sends over RIST protocol. Implements the VisioForge.Core.MediaBlocks.MediaBlock Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals Implements the VisioForge.Core.MediaBlocks.IMediaBlockDynamicInputs Implements the VisioForge.Core.MediaBlocks.IMediaBlockSink

public class RISTMPEGTSSinkBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals, IMediaBlockDynamicInputs

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

RISTMPEGTSSinkBlock(RISTSinkSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sinks.RISTMPEGTSSinkBlock class with the specified settings.

public RISTMPEGTSSinkBlock(RISTSinkSettings settings)

Parameters

settings RISTSinkSettings

The RIST sink configuration settings that define connection and streaming parameters.

Exceptions

ArgumentNullException

Thrown when settings is null.

Properties

Input

Gets the first input.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets the inputs.

public override MediaBlockPad[] Inputs { 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[]

Type

Gets the type.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds the RIST MPEG-TS sink block and configures input pads for streaming.

public override bool Build()

Returns

bool

true if the block was successfully built; otherwise, false.

CleanUp()

Cleans up.

public void CleanUp()

CreateNewInput(MediaBlockPadMediaType)

Creates a new input pad for the specified media type to support multi-stream MPEG-TS.

public MediaBlockPad CreateNewInput(MediaBlockPadMediaType mediaType)

Parameters

mediaType MediaBlockPadMediaType

The type of media stream (video, audio, or subtitle) for the new input.

Returns

MediaBlockPad

A new VisioForge.Core.MediaBlocks.MediaBlockPad configured for the specified media type.

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.

GetFilenameOrURL()

Gets the RIST streaming URL.

public string GetFilenameOrURL()

Returns

string

The configured RIST URL as a string.

GetInput(MediaBlockPadMediaType)

Retrieves an existing input pad of the specified media type.

public MediaBlockPad GetInput(MediaBlockPadMediaType mediaType)

Parameters

mediaType MediaBlockPadMediaType

The media type to search for.

Returns

MediaBlockPad

The first VisioForge.Core.MediaBlocks.MediaBlockPad matching the specified type, or null if none exists.

IsAvailable()

Determines whether the RIST MPEG-TS sink functionality is available in the current environment.

public static bool IsAvailable()

Returns

bool

true if RIST streaming with MPEG-TS is supported; otherwise, false.

SetFilenameOrURL(string)

Sets the RIST streaming URL.

public void SetFilenameOrURL(string value)

Parameters

value string

The new RIST URL string.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The pipeline.

See Also

IMediaBlockSink