In this scenario you cannot rely on BackgroundAudioPlayer.Instance
methods working - and you need to handle the InvalidOperationException
to know that this has scenario occurred.
At this point you can restart your background audio agent again using BackgroundAudioPlayer.Instance.Play()
.