Before Windows Presentation Framework (WPF) was introduced, if you wanted to add 3D graphics, animation, or audio/video to your application, Managed DirectX was the only option. At present, Managed DirectX has been deprecated in favor of WPF. However, if you want to embed a video in your application and do not want to use the non-trivial approach of hosting WPF, Managed DirectX is a good approach. In this recipe we will look at how to use Managed DirectX to develop a video player. So, let's get started.
You will require the DirectX 9 SDK for this recipe.
The steps to implement the video player are as follows: