![]() Without going into too much detail, the methods are OpenMediaAsync, GetSampleAsync, CloseMedia, SeekAsync, GetDiagnosticsAsync, and SwitchMediaStreamAsync. This will require us to override a number of methods. To recap from the previous article, we need to first derive our custom class from. Silverlight 5 comes with the Platform Invoke support for calling native code (among many other great features). MediaElement (MediaStreamSource) as well as WriteableBitmap Implementation BackgroundĪs of 1 st of September 2011, Silverlight 5 RC has been made available for download (see Pete's blog - link above). Please Note the second download ( CMS_S5_plusWriteableBitmap) includes displaying the same Video Samples using the WriteableBitmap. So in short, just as the previous article, this HowTo article tries to demonstrate the power of the MediaElement and MediaStreamSource classes with P/Invoke support to call native code to play an AVI video. ![]() It is important to go through that article first - most of the steps covered there won't be covered here. ![]() Our objectives for this HowTo article is no different from my previous article with almost exactly the same Title. Silverlight 4 did not have P/Invoke support for calling native functions Silverlight 5 does (see Pete Brown's blog for more details). Download CMSS_S5_plusWriteableBitmap - 86.79 KB ( MediaElement plus WriteableBitmap).Download source - 78.15 KB ( MediaElement Only). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |