I'm using BackgroundAudioPlayer
for my Windows Phone 7 music & video application. After I play some music, I play video using MediaPlayerLauncher
, then press Back to return to my app. There whenever I use BackgroundAudioPlayer.Instance
. I receive error "The background audio resources are no longer available".
Someone on MSDN suggests using try/catch, but this is not a good idea, and can slow down the app.
Other suggests call BackgroundAudioPlayer.Instance.Close()
before launch MediaPlayer
. However, when I play music, the agent load .dll again, which takes very much time.
How to fix this ?