문제

I'm experimenting with a simple app that plays an audio file when run (isLooping=true, autoplay=true). It works fine but after closing it and opening it again, the audio file resumes playing the exact same second where I left it the time before, instead of starting over, as it should.

I tried doing audiofile.Stop() before audiofile.Play() but it doesn't work.

I'm guessing that the app never really "closes"? I'm not saving any progress in my app, it just launches and plays a file. That's all it does for now.

Thanks in advance,

도움이 되었습니까?

해결책

call BackgroundAudioPlayer.Instance.Close() in OnNavigatedFrom of your screen and Application_Closing events.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top