Which class is suitable to play music file?

110 Views Asked by At

My app will get all music file from KnownFolders.MusicLibrary, which will return StorageFile, but later I found out there's few Class I can choose to play music file.

What I want is that when I play a list of music file, it can be controlled on the universal volume control (like picture below).

I found BackgroundAudioPlayer Class, BackgroundMediaPlayer Class, MediaPlayer Class, and MediaElement Control. Which one of them is the most suitable Class/Control to play music file?

I'm developing Windows Phone 8.1 Silverlight

enter image description here

1

There are 1 best solutions below

2
On BEST ANSWER

To do it in the correct way (to allow users play music when your app is un background) you should use backgroundaudioplayer. I used it on Fildo and works great.