Media failed

Topics: Windows 8 Xaml
Jan 11, 2013 at 12:21 PM


I'm developing a windows store app to browse project. Every project can have attached files like avi, pdf-s, pictures. Files are downloaded through WCF to local folder. (ApplicationData.Current.LocalFolder)

My problem is, that player cannot play these files. I can play the sample video provided in the sample usage section. I can play the video with media player on the device. But Player Framework (and also MediaElement) fail playing the file (not supported exception).


Can you help me?




Jan 16, 2013 at 12:24 AM

Hello, the player framework uses the MediaElement under the hood (or video tag for the JS version) and doesn't ship with support for any additional media formats beyond what the Windows media foundation supports. FYI: Here's a good article with a list of supported formats.

Note: AVI is in the list but it probably depends on the codec used.

However, you can ship your app with a custom media foundation extension to support formats not in the list. Warning: it's not trivial to build one from scratch. Here's another thread providing a few links on the subject.