views:

30

answers:

1

this is what i have:

MediaPlayer.Play(DataFile.AllMusicTitles[0].SongFile); System.Threading.Thread.Sleep(3000); MediaPlayer.Play(DataFile.AllMusicTitles[1].SongFile); System.Threading.Thread.Sleep(3000); MediaPlayer.Play(DataFile.AllMusicTitles[0].SongFile);

play s0, sleep, play s1, sleep, then play s0, then 2nd time i play s0, doesn't work. i don't hear anything. is there something wrong w/ how .Play works?

i also tried stopping the song before each play but still doesn't help.

update: if the song to be played twice is from the Medialibrary it works! But if you create a song from an uri it doesn't.

A: 

Did you try to reset the current position of S0 before you replay it? I believe there is a Seek method. If so, try passing in 0 (to set it to the beginning of the song).

AlvinfromDiaspar