Thursday, September 8, 2011

Play AVI files in Silverlight 5 using MediaElement and MediaStreamSource - P/Invoke - CodeProject

Introduction to the Article

Silverlight 4 did not have P/Invoke support for calling native functions; Silverlight 5 does (see Pete Brown's blog for more details http://10rem.net/blog/2011/09/01/silverlight-5-rc-now-available). Our objectives for this HowTo article is no different from my previous article with almost exactly the same Title. That article dealt with COM support. It is important to go through that article first - most of the steps covered there won't be covered here (CustomMediaStreamSource.aspx).

So in short, just as the previous article, this HowTo article tries to demostrate the power of the MediaElement and MediaStreamSource classes with P/Invoke support to call native code to play an AVI video.


Play AVI files in Silverlight 5 using MediaElement and MediaStreamSource - P/Invoke - CodeProject
Enhanced by Zemanta

No comments: