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

duration returns null on web #45

Closed
sunilguptasg opened this issue Jan 28, 2022 · 5 comments
Closed

duration returns null on web #45

sunilguptasg opened this issue Jan 28, 2022 · 5 comments

Comments

@sunilguptasg
Copy link

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)

@llfbandit
Copy link
Owner

Yes, web platform implementation is basic for now.
Most of the features are stubs on it.

@sunilguptasg
Copy link
Author

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..

@llfbandit
Copy link
Owner

You can setup your own timer when starting and stopping the record.

@llfbandit
Copy link
Owner

Closed because unrelated to record package.

@GauravCalidig
Copy link

This is a feature request, can you keep this open please @llfbandit

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

3 participants