0

我正在开发旨在播放音乐并让用户享受音乐+视频应用程序(默认应用程序)中不可用的功能的 Windows Phone 音乐应用程序。我想在设备中导入当前可用的音乐,或者至少能够从 pc 轻松地将音乐导入应用程序。

我怎样才能做到这一点?我搜索了它,但我没有任何帮助,尽管我现在在商店的其他应用程序中看到了这个功能。

4

1 回答 1

3

MediaLibrary

If you want to access the music already detected by the phone (both on the device memory and SD card), then use the MediaLibrary to access all the tracks...

http://msdn.microsoft.com/en-us/library/dd231914.aspx

http://www.jeffblankenburg.com/2011/11/28/31-days-of-mango-day-28-media-library/


ExternalStorage

If you want to access the SD card, then you'll have to use ExternalStorage API...

http://dotnet.dzone.com/articles/using-local-storage-windows


BackgroundAudioPlayer

And if you're serious about making a music player, you will have to also use the BackgroundAudioPlayer which allows music to keep playing even when your app is not running...

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394039(v=vs.105).aspx

于 2013-07-25T13:21:44.747 回答