Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug iOS AudioPlayer where multiple calls to setupRemoteTransportC… #1205

Merged
merged 1 commit into from
May 17, 2024

Conversation

indiefan
Copy link
Contributor

…ontrols resulted in duplicate MPRemoteCommand targets being applied for the same action.

We call this multiple times to pick up settings changes for certain playback controls. This makes that safe, with the assumption that we don't actually ever want multiple targets defined on the same commandCenter action. If at some point we do want that, then we'll need to refactor this to do more state-management, but I figured it was better to start with the simple approach unless/until we need the more complex one.

Fixes #1141.

…ontrols resulted in duplicate MPRemoteCommand targets being applied for the same action.
@advplyr
Copy link
Owner

advplyr commented May 17, 2024

Works great, thanks!

@advplyr advplyr merged commit 06a0a68 into advplyr:master May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pause not working from notification card.
2 participants