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] Hosted Flutter Web app does not return audio length: #1114

Open
Kurczaak opened this issue Oct 28, 2024 · 1 comment
Open

[BUG] Hosted Flutter Web app does not return audio length: #1114

Kurczaak opened this issue Oct 28, 2024 · 1 comment

Comments

@Kurczaak
Copy link

Flutter Sound Version :

  • FULL or LITE flavor ?

  • Full

  • Important: Result of the command : flutter pub deps | grep flutter_sound
    │ ├── flutter_sound 9.16.3
    │ │ ├── flutter_sound_platform_interface 9.16.3
    │ │ ├── flutter_sound_web 9.16.3
    │ │ │ ├── flutter_sound_platform_interface...


Severity

  • Cannot run on web hosted app

Platforms you faced the error

  • Flutter Web

Describe the bug
The plugin works fine in debug mode. When I deploy my app to web I am unable to get the length of an audio file.
That's what I see in the web console:

main.dart.js:3437 Uncaught Error: MissingPluginException(No implementation found for method openPlayer on channel xyz.canardoux.flutter_sound_player)
    at Object.d (main.dart.js:3437:19)
    at main.dart.js:67180:15
    at aEz.a (main.dart.js:4820:63)
    at aEz.$2 (main.dart.js:37513:14)
    at aDA.$1 (main.dart.js:37507:21)
    at a2d.Kx (main.dart.js:38591:32)
    at axR.$0 (main.dart.js:37893:11)
    at Object.wM (main.dart.js:4931:40)
    at aa.q3 (main.dart.js:37827:3)
    at axK.$0 (main.dart.js:37863:13)

To Reproduce
Steps to reproduce the behavior:
try to run this piece of code on a web-hosted app:

await _audioPlayer.openPlayer();
    final duration = await _audioPlayer.startPlayer(
      fromURI: url,
    );

Logs!!!!

Since it happend only on a deployed version my only log is:

main.dart.js:3437 Uncaught Error: MissingPluginException(No implementation found for method openPlayer on channel xyz.canardoux.flutter_sound_player)
    at Object.d (main.dart.js:3437:19)
    at main.dart.js:67180:15
    at aEz.a (main.dart.js:4820:63)
    at aEz.$2 (main.dart.js:37513:14)
    at aDA.$1 (main.dart.js:37507:21)
    at a2d.Kx (main.dart.js:38591:32)
    at axR.$0 (main.dart.js:37893:11)
    at Object.wM (main.dart.js:4931:40)
    at aa.q3 (main.dart.js:37827:3)
    at axK.$0 (main.dart.js:37863:13)

@Kurczaak Kurczaak changed the title [BUG]: [BUG] Hosted Flutter Web app does not return audio length: Oct 28, 2024
@Larpoux
Copy link
Collaborator

Larpoux commented Oct 28, 2024

@Kurczaak ,
please look to (#921) and tell us if this solves your issue.
Note : someone should add this to the doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants