I'm trying to play a WMV file in WP7 using a MediaElement control, but I always get an "ag_e_network_error" exception in the MediaFailed event of the MediaElement control. I found this solution, but it doesn't work for me because I don't have a phone connected at all. Any other solution you can think about?
Here's the xaml:
<MediaElement Grid.Row="0"
x:Name="mediaSample"
Source="/Media/Wildlife.wmv"
AutoPlay="True"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Height="200"
Width="200"
MediaOpened="MediaElement_MediaOpened"
MediaFailed="mediaSample_MediaFailed" />
The '/Media/Wildlife.wmv' 'Build Action' is set to 'Content' and 'Copy to Output Directory' is set to 'Copy Always'.
Thanks!