Domanda

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,

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top