Set the mediaelement source with in cs file

Topics: Windows Phone 8
Sep 22, 2013 at 5:15 PM
hello
I can not change the source in main.cs

public MainPage()
    {
        InitializeComponent();
        player.Source = new Uri(@"mms://91.197.165.4/chaine.wmv", UriKind.Absolute);
        player.Play();
}

please help me
Coordinator
Sep 23, 2013 at 5:48 PM
This should work as long as the video url is supported. I'm not sure offhand if mms: is supported on WP. Can you try again with a different test stream such as:
http://smf.blob.core.windows.net/samples/videos/bigbuck.mp4
just to rule out the stream itself?