-
Notifications
You must be signed in to change notification settings - Fork 181
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
duration returns null on web #45
Comments
Yes, web platform implementation is basic for now. |
Thanks! Would you know of another other method to query the duration of the audio file - I could use this method when _audioPlayer.duration returns null.. |
You can setup your own timer when starting and stopping the record. |
Closed because unrelated to record package. |
This is a feature request, can you keep this open please @llfbandit |
Widget _buildSlider(double widgetWidth) {
final position = _audioPlayer.position;
final duration = _audioPlayer.duration;
the 'duration' call returns null on Chrome - works on actual android devices.
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.2)
The text was updated successfully, but these errors were encountered: