Arlodotexe / strix-music

Combine any music sources into a single library. It's your music. Play it your way.
http://www.strixmusic.com
136 stars 4 forks source link

App stops playing when minimized #254

Closed Arlodotexe closed 1 year ago

Arlodotexe commented 1 year ago

Describe the bug

When the Strix Music App is minimized, playback stops.

Affected area

Regression

No response

Steps to reproduce

1. Open the app
2. Play something
3. Minimize the app. It'll pause.

Visual repro steps

No response

Expected behavior

Playback should continue normally

Additional context

No response

Help us help you

Yes, but only if others can assist.

yoshiask commented 1 year ago

Here is one of the relevant docs for UWP: https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/background-audio

Arlodotexe commented 1 year ago

It's possible that this is caused by the top-level refactor we did in #250. Is SystemMediaTransportControlsHandler is being used?

yoshiask commented 1 year ago

VS doesn't find any references to SystemMediaTransportControlsHandler on the dev branch (apart from the class definition itself). Seems likely that this is the culprit.