-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Error with just_audio_web #1326
Comments
I can reproduce this problem switching from :
to
using : |
I don't use the beta version of Flutter, but I would guess it may help to add explicit type annotations to parts of the plugin that look like this: (event) {
_durationCompleter?.completeError(_audioElement.error!);
}.toJS); So replacing |
This fixes the issue on my end. Also _audioElement.addEventListener(
'ended',
(Event event) {
_currentAudioSourcePlayer?.complete();
}.toJS); |
Thanks for testing that. Would you be interested in contributing that change as a pull request, or would you prefer me to replicate that change? |
@ryanheise, sorry for a delayed response - yep, sure, no problem! I've opened and prepared a PR: #1329 |
I experience the same issue but only on the build server and not on the local machine. I have no idea why. Both have the same flutter/dart version. |
Thanks to @SleepySquash 's pull request and @maknon for reporting, this is now merged and released on pub.dev. Use |
same issue with ryanheise/just_audio#1326
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio. |
Which API doesn't behave as documented, and how does it misbehave?
Start getting errors while building web version of my app
Minimal reproduction project
The example
To Reproduce (i.e. user steps, not code)
Build the web version of the example in:
https://github.com/ryanheise/just_audio/blob/minor/just_audio/example/lib/main.dart
Error messages
Expected behavior
compiling without errors
Screenshots
NA
Desktop (please complete the following information):
Smartphone (please complete the following information):
NA
Flutter SDK version
Additional context
it was working at one point of time but not sure which update break all of this
The text was updated successfully, but these errors were encountered: