Use the MediaElement cause the error “The background audio resources are no longer available.”

前端 未结 1 1858
抹茶落季
抹茶落季 2021-01-26 18:34

In my app, I have to use an AudioPlaybackAgent (APA) and a mediaelement. I used the APA to play songs , and when I need to play video, I use the MediaElement

When I nav

1条回答
  •  清酒与你
    2021-01-26 18:59

    This occurs because data get lost when navigating between pages. You can try saving data to IsolatedStorage. You can find more information in this question: Save values between page navigation in Windows Phone

    0 讨论(0)
提交回复
热议问题