-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[video_player]: reduce video player position update interval from 500ms to 100ms #8346
base: main
Are you sure you want to change the base?
[video_player]: reduce video player position update interval from 500ms to 100ms #8346
Conversation
…ow setting position updates periodic intervals
Per discussion linked from flutter/flutter#90080 (comment) I'm skeptical that this is API we want to add. If subtitles don't work reliably at the current update frequency, and higher update frequencies don't have noticeable performance impact, then we should simply increase the frequency. If it does have performance issues, then we should figure out a different way of triggering subtitle changes. Either way, I would expect that we should be able to resolve the issue without new public API and without requiring extra configuration. |
I kept searching for the previous discussions but couldn't find them. Thank you for providing the link. Would an update frequency of 100ms work? I think it would be very effective for subtitles and not frequent enough to cause a high load on devices. if you agree, i can open a new pr with that change and add a test to make sure captions are included in the timer consideration |
note: this is how i override it from the app side, i didnt like the approach this is why i opened this pr
|
i updated the pr to be an update to value from 500 to 100 ms, and the test case. hope thats okay |
Description
reduce video player position update interval from 500ms to 100ms to fix the issue of fast captions not showing for their intended time
List which issues are fixed by this PR. You must list at least one issue.
flutter/flutter#160855
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.