|
StCore - STANAG Player / Injector .NET SDK
Version 3.1.1
|
Windows Presentation Foundation (WPF) in Visual Studio provides developers with a unified programming model for building line-of-business desktop applications on Windows.
StCore SDK's WPF demo application demonstrates a basic WPF player functionality - STANAG files / streams playback.
By default, the demo application is installed in "C:\Program Files\ImpleoTV\StanagPlayerSdkNet\Samples\KlvPlayerDemoWpf" directory. Open the KlvPlayerDemoWpfPr.sln solution and build it as a 64 bit application (debug or release).
The code is pretty much a self-explanatory. The main difference from the console application is that we provide the SDK with the Window handle, where the video will be rendered. As shown below, we use WindowsFormsHost in order to host a Winform panel and get the Window handle from there.
Assigning Window Handle:
For complete code sample please see Playback Sample (Wpf)