I wrote a player under WP 8.1 in C #, it remains to implement a background agent, but ...
How to play a track of type StorageFile using BackgroundAudioPlayer (although maybe there is another option for background playback)?
As I understand it, to play through BackgroundAudioPlayer need to pass an object of type AudioTrack , which when declared, consists of Uri, title, artist ... But Uri, obtained by the Path StorageFile property, has the form "C:\Data\Users\PUBLIC\Music\2.mp3" and does not want to be accepted, tried to google or watch an example of a background agent (for example, on the ms site) - the file is read everywhere either from an isolated storage or from an Internet link, and nowhere from the phone.
There is an option to copy the file to isolated storage and then delete it, but this is similar to complete nonsense and accelerated memory wear.
Thank you in advance. )