Trying to code a Windows Phone silverlight app, and I’m trying to copy a “song” instance from the MediaLibray.Songs collection, to IsolatedStorage; I’m using the MediaHelpers / MediaParsers / Mp3MediaStreamSource classes as well, but I’m unable to create the relative URI properly for the selected song in the MediaLibrary:
Uri uri = new Uri("[Application Name];component/temptrack.mp3",UriKind.Relative);
What is the right format for creating a URI for a song within the MediaLibrary.Songs collection? Or is it just not possible to do this?
Thanks a ton in advance!
It’s not. You can’t get the Uri for a given Song object.