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(ios): do not save pause state before seeking #3650

Merged

Conversation

freeboub
Copy link
Collaborator

@freeboub freeboub commented Apr 3, 2024

Summary

Do not save paused state before seeking.
If user change paused prop during seek, it will not be applied (as a pause is done before seeking)

Motivation

we can have a kind of race condition if user change paused prop during the seek, the initial value will be applied
address ticket: #3644

Changes

  • improve sample
  • Do not save paused state before seeking and apply expected paused state at the end of seek

Test plan

Tested by changing the sample to seek at 0 and pause in onEnd callback
see comment: #3644 (comment)

Copy link
Collaborator

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
But how about android? Is there also pause state saving? (just asking)

@freeboub
Copy link
Collaborator Author

freeboub commented Apr 5, 2024

I just fixed conflict, regarding to android implmentation, this issue is not available (diffferent behavior)

@freeboub freeboub merged commit e992243 into TheWidlarzGroup:master Apr 5, 2024
6 checks passed
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.

None yet

2 participants