We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 behaves as intended on Windows but not on Android.
Problematic Implementation:
audioPlayer.seek( Duration( microseconds: max( 0, min( ((details.localPosition.dx / constraints.maxWidth) * duration.inMicroseconds) .toInt(), duration.inMicroseconds, ), ), ), );
Hacky Solution:
audioPlayer.seek( Duration( microseconds: max( 0, min( ((details.localPosition.dx / constraints.maxWidth) * duration.inMicroseconds) .toInt(), duration.inMicroseconds, ), ), ), ).then((_) => audioPlayer.getCurrentPosition().then( (position) => _playerPositionChanged(position as Duration) ));
The text was updated successfully, but these errors were encountered:
Thanks, nice catch same problem for web.
I overlooked that duration is not available for web, but the position update after seeking actually works.
Sorry, something went wrong.
fix(android): emit onPositionChanged when seek is completed (closes b…
dd4559a
…luefireteam#1259)
fix(android): emit onPositionChanged when seek is completed (closes #…
e1adfe3
…1259)
6e79236
9376852
be7ac6a
…1259) (#1265)
Gustl22
Successfully merging a pull request may close this issue.
It behaves as intended on Windows but not on Android.
Problematic Implementation:
Hacky Solution:
The text was updated successfully, but these errors were encountered: