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

Improve handling of playWhenReady parameters #69

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

puckey
Copy link
Contributor

@puckey puckey commented Oct 31, 2023

This fixes an issue where calling one of the player methods with an optional playWhenReady parameter with playWhenReady = true, it would first start loading the current track before the track-changing action was called and then it would be called again because the track changed.

Instead, when playWhenReady is false, playback is paused before changing the track. When playWhenReady is true, playback is started after changing the track – which causes only the new track to start loading.

This fixes an issue where calling one of the player methods with an optional playWhenReady parameter with playWhenReady= true, it would first start loading the current track before the track-changing action was called and then it would be called again because the track changed.

Instead, when playWhenReady is false, playback is paused before changing the track. When playWhenReady is true, playback is started after changing the track – which causes only the new track to start loading.
@puckey puckey force-pushed the fix/play-when-ready branch from d688bf2 to 499ad5d Compare October 31, 2023 10:56
@dcvz dcvz merged commit ea82b81 into doublesymmetry:main Mar 25, 2024
1 check failed
@dcvz dcvz mentioned this pull request Apr 11, 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.

2 participants