Null renderer
The null renderer block sends the data to null. This block may be required if your block has outputs you do not want to use.
Block info
Name: NullRendererBlock.
Pin direction | Media type | Pins count |
---|---|---|
Input | Any | 1 |
The sample pipeline
UniversalSourceBlock
→ NullRendererBlock
Sample code
var pipeline = new MediaBlocksPipeline(false);
var filename = "test.mp3";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var nullRenderer = new NullRendererBlock();
pipeline.Connect(fileSource.AudioOutput, nullRenderer.Input);
await pipeline.StartAsync();
Platforms
Windows, macOS, Linux, iOS, Android.