Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Does Silverlight media player takes only wmv formats, why it cannot play other format files like avi,mp4 etc...
Posted

See here[^] for a list of supported formats.
 
Share this answer
 
To answer your question I will first quote from a book Silverlight Recipes, A Problem Solution Approach that "Silverlight supports the Microsoft ASF and MP4 File Formats (also known as MPEG-4 File Format version 2)"

WMV and WMA files follows the ASF file container structures. MP4 and MOV can also be decoded by Silverlight as they are common variants of the MP4 container structure.

So, based on that understanding I can say Silverlight can take WMV, WMA, MP4 and MOV.

But there is almost always a "BUT", that even though Silverlight can consume the above container formatsor structures, it can only decode if those file formats are encoded using Windows Media VC-1/H.264 (or equiv. in MPEG-4 part 10 and the MPEG-4 Advanced Video Codec) standards.

Now, that is according to the Author, out-of-the-box support in Silverlight.

And yes, Silverlight does not support out-of-the-box AVI file structures. For these types you will have to write your own code which you can then hook up with Silverlight to render frames from an avi video as in the code project article link below:

Play AVI files in Silverlight 4 using MediaElement and MediaStreamSource[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900