I would like to change song on my MediaElent from track1.mp3 to track2.mp3. And here is the code:
MyMediaElement.Stop();
Uri u = new Uri("track2.mp3", UriKind.Relative);
MyMediaElement.Source=u;
MyMediaElement.Play();
The MediaElement change the source but just wont start. What could possibly be wrong with this code?