Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant