I find that in SaveRingtoneTask example from Microsoft used:
saveRingtoneChooser.Source = new Uri(@"isostore:/" + ringtonePath);
I use Uri like this to play audio by MediaPlayer but there are no exceptions or sounds.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The “isostore:/” prefix only seems to be supported in certain narrow scenarios – like setting the live tile image or perhaps as in your example – to save a ringtone. There is an article on doing what you ask for with BackgroundAudioPlayer here.
If you just need to play back the files inside your application – you can use MediaElement.SetSource() to point to a stream of the file opened from isolated storage.