Table of Contents

Class SRTRAWSourceBlock

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

SRT (Secure Reliable Transport) RAW source block for low-latency streaming reception without automatic decoding. Provides reliable UDP-based stream transport with error recovery and encryption for live broadcasting, remote production, and professional streaming applications requiring low-latency, high-quality video transmission over unreliable networks. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class SRTRAWSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

SRTRAWSourceBlock(SRTSourceSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.SRTRAWSourceBlock class with custom SRT settings. Configures the SRT RAW source for secure low-latency streaming with specified network and security parameters.

public SRTRAWSourceBlock(SRTSourceSettings settings)

Parameters

settings SRTSourceSettings

The SRT settings controlling URI, encryption, latency, bandwidth, and network configuration parameters.

Properties

Input

Gets the primary input pad (none for source blocks that receive network streams).

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block (none for source blocks).

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad for the raw SRT stream.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block (single output for SRT stream).

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the SRT configuration settings that control network parameters and security options.

public SRTSourceSettings Settings { get; set; }

Property Value

SRTSourceSettings

Type

Gets the media block type identifier for SRT RAW source operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the SRT RAW source within the pipeline context. Establishes secure SRT connection, configures stream reception, and prepares raw output for downstream processing.

public override bool Build()

Returns

bool

true if the SRT RAW source was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the SRT operations, including secure connection and stream buffers.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the SRT RAW source. Properly closes SRT connection and disposes of GStreamer elements and streaming 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 the core GStreamer element wrapper for advanced configuration and monitoring.

public BaseElement GetCore()

Returns

BaseElement

Always null for composite source blocks with multiple internal elements.

GetElement()

Gets the native GStreamer element for direct GStreamer pipeline integration.

public Element GetElement()

Returns

Element

The SRT source GStreamer element.

IsAvailable()

Determines whether SRT support is available on the current system. Requires GStreamer SRT source plugins and SRT libraries to be installed and functional.

public static bool IsAvailable()

Returns

bool

true if SRT support is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this SRT RAW source, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this SRT RAW source.

See Also