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

Current Duration Position reporting as higher than max value #9

Open
Jsnt1004 opened this issue May 24, 2023 · 0 comments
Open

Current Duration Position reporting as higher than max value #9

Jsnt1004 opened this issue May 24, 2023 · 0 comments

Comments

@Jsnt1004
Copy link

_AssertionError ('package:flutter/src/material/slider.dart': Failed assertion: line 163 pos 15: 'value >= min && value <= max': Value 7577.0 is not between minimum 0.0 and maximum 7466.0)

It appears that the callback to getDurationPosition is reporting a higher value than getDurationMax causing the error when playing the video when playing an MP4 on Windows.

I have a workaround by resetting the current position to the max duration when it is greater than max.

It would be more elegant if this was in the core package.

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

No branches or pull requests

1 participant