-
Notifications
You must be signed in to change notification settings - Fork 574
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
[BUG]: can not play sound on Web platform #965
Comments
On Flutter Web, Chrome browser, flutter_sound: ^9.2.13, facing similar howl error IDE console:┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Browser console shows:js_primitives.dart:30 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── |
Can confirm same issue on Flutter Web. |
Same Error Here !, if change the line "if (typeof exports !== 'undefined') " to "(typeof exports !== 'undefined' && exports)" works but not en release. |
@rajkovukovic I get this error, how should I fix it? |
I have tried fowling:
Unfortunately I still get the same error :
At the browser console:
|
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days. |
Same issue |
This issue is stale because it has been open 365 days with no activity. Leave a comment or this will be closed in 7 days. |
Same |
OK guys and girls :) I am going to build a new Flutter Sound with this patch. |
Flutter Sound 9.4.13 is released with this patch inside it. |
Flutter Sound Version : 9.2.13
Flutter version: 3.10.1
Dart version: Dart 3.0.1
FULL or LITE flavor ? N/A
Important: Result of the command :
flutter pub deps | grep flutter_sound
Severity
Crash ? - No crashing
Result is not what expected ? - Sound does not play on the Web platform
Cannot build my App ? - The app can be built, but it throws an error on the console on app start
Minor issue ? - N/A
Platforms you faced the error
iOS ? - No
Android ? - No
Flutter Web ? - Yes
Emulator ? - No
Real device ? - No
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Add flutter_sound to a flutter web project and try to play any remote mp3 file
Logs!!!!
(This is very important. Most of the time we cannot do anything if we do not have information on your bug).
To activate the logs, you must instantiate your modules with the Log Level set to
Level.debug
:See this
Playing sound on web platform does not work.
Browser console shows:
it seems like in file howler.js, with latest flutter and latest dart, does not expect
exports
variable to be null.Adding
&& exports
to the conditionseems to solve the problem
The text was updated successfully, but these errors were encountered: