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

It doesn't play when setState has been set inside durationHandler #4

Open
jr2wolfgang opened this issue Apr 20, 2020 · 0 comments
Open

Comments

@jr2wolfgang
Copy link

jr2wolfgang commented Apr 20, 2020

Everything works except when you implement the slider. I observed that if this code is present:

advancedPlayer.durationHandler = (d) => setState(() { _duration = d; });

`advancedPlayer.positionHandler = (p) => setState(() {
      _position = p;
    });`

Code above prevents the mp3 to not to play. But when I comment this specific line of code, the mp3 works again.
Do you think what happened?

I notice that when you put setState inside the durationHandler or positionHandle, it doesn't work

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