#
NDI source block
The NDI source block supports connection to NDI software sources and devices supporting the NDI protocol.
#
Block info
Name: NDISourceBlock.
#
The sample pipeline
graph LR; NDISourceBlock-->VideoRendererBlock; NDISourceBlock-->AudioRendererBlock;
#
Sample code
var pipeline = new MediaBlocksPipeline();
// 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();
#
Sample applications
#
Platforms
Windows, macOS, Linux.