stijnvdb88 / Snap.Net

A cross-platform control client and player for https://github.com/badaix/snapcast
GNU General Public License v3.0
118 stars 11 forks source link

[iOS] Background audio may not pause #25

Open giantorth opened 3 years ago

giantorth commented 3 years ago

Begin playing audio and navigate to another application for several minutes. When attempting to pause using media controls audio does not stop. Returning to application and play/stop button no longer halts music playback and application must be killed to stop playback.

This doesn’t seem to happen every time but I’ve triggered it at least 3x now so not infrequent. I suspect iOS does some kind of background unloading of a music player after a period of time.

stijnvdb88 commented 3 years ago

Hi! Thanks a lot for this, it's really helpful. I'm not an iOS user myself so I really have no way of finding issues like this one without someone reporting them :)

About the issue itself, the one device I have available to me for testing does not seem to suffer from it, so this might take a bit of back and forth to fix. Would you be prepared to help me test this? I could add you on TestFlight, giving you access to beta builds.

giantorth commented 3 years ago

Using the latest test flight build I can always trigger the following sequence:

  1. Start playback audio
  2. Leave application
  3. Pause with media controls
  4. Resume with media controls
  5. Playback cannot be paused again without terminating the app