Skip to main content
Home Forums Silverlight Design Video and Media Playing an mp4 from Expression Encoder
1 replies. Latest Post by Mog Liang - MSFT on November 9, 2009.
(0)
djclinton
Member
25 points
24 Posts
11-04-2009 11:22 PM |
Greetings,
I'm trying to get an mp4 to play in the MediaElement but there doesn't seem to be any CLEAR examples of how to do this.
XAML
<MediaElement x:Name="ThePlayer" Source="assets/test.mp4" AutoPlay="True" />
The mp4 works when it's outputted by the Expression Encoder with a Template.
All help would help.
Thanks
Mog Lian...
All-Star
15894 points
1,541 Posts
11-09-2009 12:50 AM |
Hi,
Not all mp4 is supported by silverlight, from this article we know silverlight support h.264,aac-lc codec with mp4 container.
By using expression encoder, it would encode the mp4 file to silverlight acceptable codec, you could find the encoded media file in output directory, this file could be played directly by MediaElement.
Thanks,