How to combine SurfaceImageSource with Media Foundation? RRS feed


  • Hello,

    You should be familiar with this sample from our previous conversations: Media engine native C++ video playback sample. This sample should give you what you need to render the video from the Media Engine onto a D3D surface. You should then be able to use D3D and XAML interop to integrate with the SurfaceImageSource.

    Keep in mind that with the SurfaceImageSource the XAML compositing stack handles when the frame is updated. Because of this is it very likely that you will see tearing of the video when mixing the Media Engine render with the SurfaceImageSource. Because of this it is not recommended.

    I hope this helps,


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Wednesday, April 22, 2015 12:29 AM