Cannot play local WMV in silverlight MediElement

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-03-20T03:29:30Z Indexed on 2010/03/20 3:31 UTC
Read the original article Hit count: 481

Filed under:
|

Hello,

I am trying to play a video in WMV format in a silverlight MediaElement.

<StackPanel>
  <Grid x:Name="LayoutRoot">
        <MediaElement x:Name="media" Source="C:\Bounce.wmv" 
    Width="300" Height="300" AutoPlay="True" />
    </Grid>
     </StackPanel>

This does nothiing.. but if I change the source attribute to point to some WMV out on the web it works.

What am I doing wrong?

Thanks,

Nick

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about mediaelement