Skip to main content

NDI source block

The NDI source block supports connection to NDI software sources and devices supporting the NDI protocol.

Block info

Name: NDISourceBlock.

Pin directionMedia typePins count
Output audioUncompressed1
Output videoUncompressed1

The sample pipeline

Sample code

var pipeline = new MediaBlocksPipeline(true);

// get NDI source info by enumerating sources
var ndiSources = await DeviceEnumerator.Shared.NDISourcesAsync();
var ndiSourceInfo = ndiSources[0];

// create NDI source settings
var ndiSettings = NDISourceSettings.CreateAsync(ndiSourceInfo);

var ndiSource = new NDISourceBlock(ndiSettings);

var videoRenderer = new VideoRendererBlock(pipeline, VideoView1);
pipeline.Connect(ndiSource.VideoOutput, videoRenderer.Input);

var audioRenderer = new AudioRendererBlock();
pipeline.Connect(ndiSource.AudioOutput, audioRenderer.Input);

await pipeline.StartAsync();

Platforms

Windows, macOS, Linux.