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

[BUG]: can not play sound on Web platform #965

Closed
rajkovukovic opened this issue May 19, 2023 · 11 comments
Closed

[BUG]: can not play sound on Web platform #965

rajkovukovic opened this issue May 19, 2023 · 11 comments

Comments

@rajkovukovic
Copy link

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

├── flutter_sound 9.2.13
│   ├── flutter_sound_platform_interface...
│   ├── flutter_sound_web 9.2.13
│   │   ├── flutter_sound_platform_interface...
├── flutter_sound_platform_interface 9.2.13

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 :

FlutterSoundPlayer myPlayer = FlutterSoundPlayer(logLevel: Level.debug);
FlutterSoundRecorder myRecorder = FlutterSoundRecorder(logLevel: Level.debug);

See this


Playing sound on web platform does not work.
Browser console shows:

howler.js:2518 Uncaught TypeError: Cannot set properties of null (setting 'Howler')
    at howler.js:2518:20
    at howler.js:2534:3

it seems like in file howler.js, with latest flutter and latest dart, does not expect exports variable to be null.

  // Add support for CommonJS libraries such as browserify.
  if (typeof exports !== 'undefined') {
    exports.Howler = Howler;
    exports.Howl = Howl;
  }

Adding && exports to the condition

if (typeof exports !== 'undefined' && exports)

seems to solve the problem

@Shubham-VE
Copy link

Shubham-VE commented Jul 28, 2023

On Flutter Web, Chrome browser, flutter_sound: ^9.2.13, facing similar howl error

IDE console:

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 779:13 _startPlayer
#1 packages/flutter_sound/public/flutter_sound_player.dart 771:32 [_startPlayer]
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 FS:---> startPlayer
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 1099:13 _stop
#1 packages/flutter_sound/public/flutter_sound_player.dart 1098:21 [_stop]
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 FS:---> _stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: ---> stopPlayer
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: ---> stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 stopTimer()
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: <--- stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 296:13 stopPlayerCompleted
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 105:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 ---> stopPlayerCompleted: true
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 311:13 stopPlayerCompleted
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 105:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 <--- stopPlayerCompleted: true
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: <--- stopPlayer
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 1126:13 _stop
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 FS:<--- _stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 273:25 startPlayer
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 startPlayer FromURI : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: ---> startPlayer
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: ---> stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 stopTimer()
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: <--- stop
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 startPlayer : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 startPlayer : String
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
#1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 JS: ---> playAudioFromURL : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
ReferenceError: Howl is not defined
assets/packages/flutter_sound_web/src/flutter_sound_player.js 79:28 playAudioFromURL
assets/packages/flutter_sound_web/src/flutter_sound_player.js 251:22 startPlayer
packages/flutter_sound_web/flutter_sound_player_web.dart 274:46 startPlayer
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async
packages/flutter_sound_web/flutter_sound_player_web.dart 245:32 startPlayer
packages/flutter_sound/public/flutter_sound_player.dart 819:61 _startPlayer
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50
dart-sdk/lib/async/zone.dart 1661:54 runUnary
dart-sdk/lib/async/future_impl.dart 147:18 handleValue
dart-sdk/lib/async/future_impl.dart 784:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 813:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 584:5 [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 657:7 callback
dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 177:15

Browser console shows:

js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 779:13 _startPlayer
#1 packages/flutter_sound/public/flutter_sound_player.dart 771:32 [_startPlayer]
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 🐛 FS:---> startPlayer
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 1099:13 _stop
js_primitives.dart:30 │ #1 packages/flutter_sound/public/flutter_sound_player.dart 1098:21 [_stop]
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 FS:---> _stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: ---> stopPlayer
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: ---> stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 stopTimer()
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: <--- stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 296:13 stopPlayerCompleted
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 105:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 ---> stopPlayerCompleted: true
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 311:13 stopPlayerCompleted
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 105:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 <--- stopPlayerCompleted: true
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: <--- stopPlayer
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 1126:13 _stop
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 FS:<--- _stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 273:25 startPlayer
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 startPlayer FromURI : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: ---> startPlayer
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: ---> stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 stopTimer()
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: <--- stop
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 startPlayer : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 startPlayer : String
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
js_primitives.dart:30 │ #0 packages/flutter_sound/public/flutter_sound_player.dart 360:13 log
js_primitives.dart:30 │ #1 packages/flutter_sound_web/flutter_sound_player_web.dart 108:109
js_primitives.dart:30 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
js_primitives.dart:30 │ 🐛 JS: ---> playAudioFromURL : https://firebasestorage.googleapis.com/v0/b/agzone-teams.appspot.com/o/users%2FvKVjvQGeQHORqKWCcceQ6jyFn843%2Faudio%2F2023-07-27%2016_55_49.067.webm?alt=media&token=29fb8065-93e4-4fac-aad6-77ae30f203c6
js_primitives.dart:30 └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter_sound_player.js:79 Uncaught (in promise) ReferenceError: Howl is not defined
at FlutterSoundPlayer.playAudioFromURL (flutter_sound_player.js:79:28)
at FlutterSoundPlayer.startPlayer (flutter_sound_player.js:251:22)
at flutter_sound_player_web.FlutterSoundPlayerWeb.new.startPlayer (flutter_sound_player_web.dart:274:46)
at startPlayer.next ()
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at flutter_sound_player_web.FlutterSoundPlayerWeb.new.startPlayer (flutter_sound_player_web.dart:245:32)
at flutter_sound_player.FlutterSoundPlayer.new._startPlayer (flutter_sound_player.dart:819:61)
at _startPlayer.next ()
at async_patch.dart:45:50
at _RootZone.runUnary (zone.dart:1661:54)
at _FutureListener.thenAwait.handleValue (future_impl.dart:147:18)
at handleValueCallback (future_impl.dart:784:44)
at _Future._propagateToListeners (future_impl.dart:813:13)
at [_completeWithValue] (future_impl.dart:584:5)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:657:7)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at _startMicrotaskLoop (schedule_microtask.dart:49:5)
at async_patch.dart:177:15
playAudioFromURL @ flutter_sound_player.js:79
startPlayer @ flutter_sound_player.js:251
startPlayer @ flutter_sound_player_web.dart:274
runBody @ async_patch.dart:84
_async @ async_patch.dart:123
startPlayer @ flutter_sound_player_web.dart:245
_startPlayer @ flutter_sound_player.dart:819
(anonymous) @ async_patch.dart:45
runUnary @ zone.dart:1661
handleValue @ future_impl.dart:147
handleValueCallback @ future_impl.dart:784
_propagateToListeners @ future_impl.dart:813
[_completeWithValue] @ future_impl.dart:584
(anonymous) @ future_impl.dart:657
_microtaskLoop @ schedule_microtask.dart:40
_startMicrotaskLoop @ schedule_microtask.dart:49
(anonymous) @ async_patch.dart:177
Promise.then (async)
_scheduleImmediateWithPromise @ async_patch.dart:175
_scheduleImmediate @ async_patch.dart:147
_scheduleAsyncCallback @ schedule_microtask.dart:69
_rootScheduleMicrotask @ zone.dart:1466
scheduleMicrotask @ zone.dart:1681
[_asyncCompleteWithValue] @ future_impl.dart:656
[_asyncComplete] @ future_impl.dart:616
_Future.immediate @ future_impl.dart:271
value @ future.dart:352
forTap @ feedback.dart:103
runBody @ async_patch.dart:84
_async @ async_patch.dart:123
forTap @ feedback.dart:93
handleTap @ ink_well.dart:1152
invokeCallback @ recognizer.dart:275
handleTapUp @ tap.dart:654
[_checkUp] @ tap.dart:311
acceptGesture @ tap.dart:281
sweep @ arena.dart:167
handleEvent @ binding.dart:469
dispatchEvent @ binding.dart:445
dispatchEvent @ binding.dart:331
[_handlePointerEventImmediately] @ binding.dart:400
handlePointerEvent @ binding.dart:363
[_flushPointerEventQueue] @ binding.dart:320
[_handlePointerDataPacket] @ binding.dart:293
invoke1 @ platform_dispatcher.dart:1251
invokeOnPointerDataPacket @ platform_dispatcher.dart:269
[_onPointerData] @ pointer_binding.dart:168
(anonymous) @ pointer_binding.dart:768
(anonymous) @ pointer_binding.dart:720
loggedHandler @ pointer_binding.dart:317
_checkAndCall @ operations.dart:367
dcall @ operations.dart:372
ret @ js_allow_interop_patch.dart:17

@DylanCross
Copy link

Can confirm same issue on Flutter Web.

bueltan added a commit to bueltan/flutter_sound that referenced this issue Aug 3, 2023
bueltan added a commit to bueltan/flutter_sound that referenced this issue Aug 3, 2023
@bueltan
Copy link

bueltan commented Aug 4, 2023

Same Error Here !, if change the line "if (typeof exports !== 'undefined') " to "(typeof exports !== 'undefined' && exports)" works but not en release.

@luoqiz
Copy link

luoqiz commented Aug 15, 2023


dependency_overrides:
  flutter_sound:
    git:
      url: https://github.com/rajkovukovic/flutter_sound.git
      ref: 65159f55abff63394ba192034220f254710ac67a
      depth: 1

image

@rajkovukovic I get this error, how should I fix it?

@GruppeGAM
Copy link

dependency_overrides:
flutter_sound:
git:
url: https://github.com/rajkovukovic/flutter_sound.git
ref: 65159f5
depth: 1

I have tried fowling:

flutter_sound:
    git:
      url: https://github.com/rajkovukovic/flutter_sound.git
      ref: master
      path: flutter_sound

Unfortunately I still get the same error :

ReferenceError: Howl is not defined
assets/packages/flutter_sound_web/src/flutter_sound_player.js 79:28   playAudioFromURL
assets/packages/flutter_sound_web/src/flutter_sound_player.js 251:22  startPlayer
packages/flutter_sound_web/flutter_sound_player_web.dart 274:46       startPlayer
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54    runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5    _async
packages/flutter_sound_web/flutter_sound_player_web.dart 245:32       startPlayer
packages/flutter_sound/public/flutter_sound_player.dart 819:61        _startPlayer
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50    <fn>
dart-sdk/lib/async/zone.dart 1661:54                                  runUnary
dart-sdk/lib/async/future_impl.dart 147:18                            handleValue
dart-sdk/lib/async/future_impl.dart 784:44                            handleValueCallback
dart-sdk/lib/async/future_impl.dart 813:13                            _propagateToListeners
dart-sdk/lib/async/future_impl.dart 584:5    
...

At the browser console:

howler.js:2518 Uncaught TypeError: Cannot set properties of null (setting 'Howler')
    at howler.js:2518:20
    at howler.js:2534:3
(anonymous) @ howler.js:2518
(anonymous) @ howler.js:2534
...
Uncaught (in promise) ReferenceError: Howl is not defined
    at FlutterSoundPlayer.playAudioFromURL (flutter_sound_player.js:79:28)
    at FlutterSoundPlayer.startPlayer (flutter_sound_player.js:251:22)
    at flutter_sound_player_web.FlutterSoundPlayerWeb.new.startPlayer (flutter_sound_player_web.dart:274:46)
    at startPlayer.next (<anonymous>)
    at runBody (async_patch.dart:84:54)
    at Object._async [as async] (async_patch.dart:123:5)
    at flutter_sound_player_web.FlutterSoundPlayerWeb.new.startPlayer (flutter_sound_player_web.dart:245:32)
    at flutter_sound_player.FlutterSoundPlayer.new._startPlayer (flutter_sound_player.dart:819:61)
    at _startPlayer.next (<anonymous>)
    at async_patch.dart:45:50
    at _RootZone.runUnary (zone.dart:1661:54)
    at _FutureListener.thenAwait.handleValue (future_impl.dart:147:18)
    at handleValueCallback (future_impl.dart:784:44)
    at _Future._propagateToListeners (future_impl.dart:813:13)
    at [_completeWithValue] (future_impl.dart:584:5)
    at async._AsyncCallbackEntry.new.callback (future_impl.dart:657:7)
    at Object._microtaskLoop (schedule_microtask.dart:40:11)
    at _startMicrotaskLoop (schedule_microtask.dart:49:5)
    at async_patch.dart:177:15
playAudioFromURL @ flutter_sound_player.js:79
startPlayer @ flutter_sound_player.js:251
startPlayer @ flutter_sound_player_web.dart:274
runBody @ async_patch.dart:84
_async @ async_patch.dart:123
startPlayer @ flutter_sound_player_web.dart:245
_startPlayer @ flutter_sound_player.dart:819
(anonymous) @ async_patch.dart:45
runUnary @ zone.dart:1661
handleValue @ future_impl.dart:147
handleValueCallback @ future_impl.dart:784
_propagateToListeners @ future_impl.dart:813
[_completeWithValue] @ future_impl.dart:584
(anonymous) @ future_impl.dart:657
_microtaskLoop @ schedule_microtask.dart:40
_startMicrotaskLoop @ schedule_microtask.dart:49
(anonymous) @ async_patch.dart:177
Promise.then (async)
_scheduleImmediateWithPromise @ async_patch.dart:175
_scheduleImmediate @ async_patch.dart:147
_scheduleAsyncCallback @ schedule_microtask.dart:69
_rootScheduleMicrotask @ zone.dart:1466
scheduleMicrotask @ zone.dart:1681
[_asyncCompleteWithValue] @ future_impl.dart:656
[_asyncComplete] @ future_impl.dart:616
complete @ future_impl.dart:36
[_complete] @ ticker.dart:402
ticker$.TickerFuture.complete @ ticker.dart:392
[_animateToInternal] @ animation_controller.dart:608
forward @ animation_controller.dart:461
confirm @ ink_ripple.dart:194
handleTap @ ink_well.dart:1147
invokeCallback @ recognizer.dart:275
handleTapUp @ tap.dart:654
[_checkUp] @ tap.dart:311
handlePrimaryPointer @ tap.dart:244
handleEvent @ recognizer.dart:630
[_dispatch] @ pointer_router.dart:98
(anonymous) @ pointer_router.dart:143
forEach @ linked_hash_map.dart:21
[_dispatchEventToRoutes] @ pointer_router.dart:141
route @ pointer_router.dart:127
handleEvent @ binding.dart:465
dispatchEvent @ binding.dart:445
dispatchEvent @ binding.dart:331
[_handlePointerEventImmediately] @ binding.dart:400
handlePointerEvent @ binding.dart:363
[_flushPointerEventQueue] @ binding.dart:320
[_handlePointerDataPacket] @ binding.dart:293
invoke1 @ platform_dispatcher.dart:1251
invokeOnPointerDataPacket @ platform_dispatcher.dart:269
[_onPointerData] @ pointer_binding.dart:168
(anonymous) @ pointer_binding.dart:791
(anonymous) @ pointer_binding.dart:720
loggedHandler @ pointer_binding.dart:317
_checkAndCall @ operations.dart:367
dcall @ operations.dart:372
ret @ js_allow_interop_patch.dart:17

Copy link

github-actions bot commented Dec 4, 2023

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.

@jsmeke
Copy link

jsmeke commented Jan 5, 2024

Same issue

Copy link

github-actions bot commented Mar 8, 2024

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.

@0010SS
Copy link

0010SS commented Jun 2, 2024

Same

@Larpoux
Copy link
Collaborator

Larpoux commented Jun 2, 2024

OK guys and girls :)
I don't have enough time to spend on Flutter Sound maintenance but the patch proposed by @rajkovukovic seems to be armless and if you want that, I have no problem to merge it in Flutter Sound.
I promised to look to all the Pull request !

I am going to build a new Flutter Sound with this patch.

@Larpoux
Copy link
Collaborator

Larpoux commented Jun 2, 2024

Flutter Sound 9.4.13 is released with this patch inside it.
Don't hesitate to reopen this issu if any problem.

@Larpoux Larpoux closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants