NDI source block
The NDI source block supports connection to NDI software sources and devices supporting the NDI protocol.
Block info
Name: NDISourceBlock.
Pin direction | Media type | Pins count |
---|---|---|
Output audio | Uncompressed | 1 |
Output video | Uncompressed | 1 |
The sample pipeline
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.