i've used a single mediaelement in my windows phone 8.1 silverlight app and changing its source using C#, my code
private void ButtonNextPage_Click(object sender, RoutedEventArgs e) { ImageLeftBelow.Style = ImageLeftShown.Style;
alpha += 1;
alphaplay.Source = new Uri("///Assets/MP3/" + alpha + ".mp3");
alphaplay.Play();
if (alpha ==26)
{
next.IsEnabled = false;
}
}
but my code is not working fine and not playing audio. I've also tried
"ms-appx:///Assets/MP3/" + alpha + ".mp3"
its also not working but my code working fine on window store app and windows phone 8.1 app. pease tell me how can i play multiple audio using a single mediaelement in windows phone 8.1 (silverlight)