Skip to main content

Microsoft Silverlight

Answered Question Playing an mp4 from Expression EncoderRSS Feed

(0)

djclinton
djclinton

Member

Member

25 points

24 Posts

Playing an mp4 from Expression Encoder

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

---------------------
Onwards and upwards

Mog Liang - MSFT
Mog Lian...

All-Star

All-Star

15894 points

1,541 Posts

Answered Question

Re: Playing an mp4 from Expression Encoder

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,

Mog Liang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities