Table of Contents

Class NDISourceXBlock

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

NDI (Network Device Interface) source X block for professional IP video streaming and production workflows. Provides advanced NDI stream reception with enhanced performance for broadcast television, live streaming, and professional video production with high-quality, low-latency audio/video transmission over standard Ethernet networks in studio and remote production environments. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class NDISourceXBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals, IMediaBlockInternals2

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

NDISourceXBlock(NDISourceSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.NDISourceXBlock class with custom NDI settings. Configures the NDI source X for professional IP video streaming with specified source and network parameters.

public NDISourceXBlock(NDISourceSettings settings)

Parameters

settings NDISourceSettings

The NDI settings controlling source selection, network configuration, and stream processing parameters.

Properties

AudioOutput

Gets the audio output pad that provides NDI audio stream to downstream blocks.

public MediaBlockPad AudioOutput { get; }

Property Value

MediaBlockPad

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 (video output for NDI stream).

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block (video and audio outputs for NDI).

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the NDI configuration settings that control source selection and stream processing options.

public NDISourceSettings Settings { get; set; }

Property Value

NDISourceSettings

Type

Gets the media block type identifier for NDI source X operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

VideoOutput

Gets the video output pad that provides NDI video stream to downstream blocks.

public MediaBlockPad VideoOutput { get; }

Property Value

MediaBlockPad

Methods

Build()

Builds and initializes the NDI source X within the pipeline context. Establishes NDI network connection, configures stream reception, and prepares video/audio outputs for downstream processing.

public override bool Build()

Returns

bool

true if the NDI source X was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the NDI operations, including network connection and audio/video buffers.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the NDI source X. Properly closes NDI network 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 NDI source X GStreamer element.

PostConnect()

Performs post-connection initialization to start NDI stream reception and begin audio/video data flow.

public bool PostConnect()

Returns

bool

true if post-connection setup completed successfully; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this NDI source X, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this NDI source X.

See Also