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: clears queue on iOS when you call reset() #1900

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

fivecar
Copy link
Contributor

@fivecar fivecar commented Feb 2, 2023

Android always did this correctly, but iOS hasn't. You basically need to not only stop playback, but actually clear the queue, when reset() is called.

fix #1899

I'm surprised no-one ever noticed this. #1899 gives a clear repro. And you'll see from Android's code that it's always worked on that platform.

Android always did this correctly, but iOS hasn't. You basically need to not only stop playback, but
actually clear the queue, when `reset()` is called.

fix doublesymmetry#1899
@fivecar fivecar requested a review from dcvz as a code owner February 2, 2023 20:10
@dcvz dcvz merged commit e3c670a into doublesymmetry:main Feb 3, 2023
@dcvz
Copy link
Contributor

dcvz commented Feb 3, 2023

Thanks for this @fivecar !

@fivecar fivecar deleted the really_clear_on_reset branch February 3, 2023 18:30
@fivecar
Copy link
Contributor Author

fivecar commented Feb 3, 2023

Glad to help! Thanks for the quick review, @dcvz !

shawna-donnelly pushed a commit to heistdotcom/react-native-track-player that referenced this pull request Apr 4, 2023
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.

iOS reset() doesn't actually clear queue
2 participants