|
embedded resources as mediaelement source? Hi,
I've gotten the mediaelement to play back our WMV9 video file just fine and
dandy and now I wanted to embed the video as a resource and have it load from
there. However, all I get is a blank screen and no video plays. No errors
either.
Here's my code:
MediaElement myvideo = new MediaElement();
myvideo = new System.Uri("MyAssembly;resource\\video.wmv",
System.UriKind.RelativeOrAbsolute);
I've validated the Uri object created is valid and even loaded it using
System.Windows.Application.GetResourcePart() to verify I could retrieve the
video correctly. MediaElement just won't play it.
Any ideas?
-Winthrop |