Using KlvStreamer SDK

In this article I’ll show how to use a KlvStreamer SDK to re-stream a STANAG 4609 file over UDP,

KlvStreamerSDK is a .NET SDK used by KlvStreamer application for sending a STANAG / TS content over IP.

So, let’s add a reference to the StreamerLib assembly and create a streamer instance.

Activate Streamer’s license with your license file and key. Use ‘KlvStreamer’ as application name.

We can set Id for the session (can be passed as an argument to the constructor) if there is a need for multi-instance streaming.
Some additional properties and events can be also set.

 KlvStreamer can operate in two modes:

  • CBR
  • VBR

In CBR mode files are transmitted with constant bitrate that either calculated at the beginning or provided as a initialization parameter. During the streaming in CBR mode no parsing of the file is performed. VBR mode is suitable for VBR file steaming. This mode requires continues file parsing in order to detect a proper streaming rate. This mode may be used for streaming CBR files as well. You can use a SetMode method in order to select a desired operation mode.

Add files that should be streamed out and a Network target (NIC, ip and port).
We’re ready to go. Initialize the streamer and start streaming….

You can control a streaming rate by calling SetStreamingRate method

In order to get a current position in the playlist, use Position.TotalSeconds property.

Random access functionality can be achieved using Seek method.

That’s it, in this article, we showed how to easily stream STANAG files over the IP network.
More info on the KlvStreamer SDK here.


No Comments

Post a Comment