Home

Awesome

KlakNDI

gif

KlakNDI is a Unity plugin that allows for sending and receiving video streams between multiple devices using NDI®.

NDI® (Network Device Interface) is a standard developed by Vizrt that enables applications to deliver video streams over a local area network. Please refer to ndi.video for more information about the technology.

System Requirements

Desktop platforms:

Mobile platforms:

KlakNDI runs without the NDI SDK on most supported platforms, but the iOS platform requires the SDK for building with Xcode. Please download and install the NDI SDK for iOS in advance of building.

KlakNDI requires network permissions on Android. Please follow the instruction in Android Support section.

License

The NDI library files are provided under the terms of the NDI SDK license. Please review it before using the package in your project.

Known Issues and Limitations

How To Install

This package uses the scoped registry feature to resolve package dependencies. Open the Package Manager page in the Project Settings window and add the following entry to the Scoped Registries list:

Scoped Registry

Now you can install the package from My Registries page in the Package Manager window.

My Registries

NDI Sender Component

send

The NDI Sender component (NdiSender) sends a video stream from a given video source.

NDI Name - Specify the name of the NDI endpoint (only available in the Camera/Texture capture method).

Keep Alpha - Enable this checkbox to make the stream contain the alpha channel. You can disable it to reduce the bandwidth.

Capture Method - Specify how to capture the video source from the following options:

You can attach metadata using the C# .metadata property.

NDI Receiver Component

recv

The NDI Receiver component (NdiReceiver) receives a video stream and feeds it to a renderer object or a render texture asset.

NDI Name - Specify the name of the NDI source. You can edit the text field or use the selector to choose a name from currently available NDI sources.

Target Texture - The receiver copies the received frames into this render texture asset.

Target Renderer - The receiver overrides a texture property of the given renderer.

You can extract metadata using the C# .metadata property.

Tips for Scripting

You can enumerate currently available NDI sources using the NDI Finder class (NdiFinder). See the Source Selector example for usage.

You can instantiate the NDI Sender/Receiver component from a script but at the same time, you have to set an NDI Resources asset (NdiResources.asset). See the Sender Benchmark/Receiver Benchmark examples for details.

Android Support

KlakNDI requires the following permissions when running on Android:

You can add them by overriding the App Manifest. Please refer to the AndroidManifest file contained in the URP sample.