Click here to Skip to main content
15,744,397 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi ,
I have a windows pone application i need to play a video file which is included in the project (".WMV ") i am using following code.
added
using System.Windows.Media;
using Microsoft.Phone.Tasks;
I couldn't able to play the video.. i am not even getting any errors or debug errors
HTML
<MediaElement x:Name="Butterfly"
              Margin="0,10,0,86"
              Source="/Vid/WP_20150513_wmvFILE.wmv"
              Stretch="Fill" AutoPlay="True" Volume="1"/>

C# code
C#
private void Button_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
    Butterfly.Play();
}
Posted

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