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

Having Issues with flame_audio plugin. What am I missing? #379

Closed
MatthewJones517 opened this issue Jan 15, 2024 · 3 comments
Closed

Having Issues with flame_audio plugin. What am I missing? #379

MatthewJones517 opened this issue Jan 15, 2024 · 3 comments

Comments

@MatthewJones517
Copy link

MatthewJones517 commented Jan 15, 2024

I am trying to get flutter-pi working with something I whipped with the flame and flame_audio packages. I've got it 95% of the way there. I get the following error every time a sound plays:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method create on channel xyz.luan/audioplayers)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320)
<asynchronous suspension>
#1      AudioplayersPlatform.create (package:audioplayers_platform_interface/src/audioplayers_platform.dart:18)
<asynchronous suspension>
#2      AudioPlayer._create (package:audioplayers/src/audioplayer.dart:161)
<asynchronous suspension>

I found the following issues that appears to be related:
#120
#233

It seems like the flame_audio package uses audioplayer as a dependency. Given I've seen several threads about it here, I'm guessing it's related to flutter_pi. Especially everything works fine on my Ubuntu dev machine.

I'm guessing this is related to the issues above. I just want to confirm that so I don't keep troubleshooting. :)

@MatthewJones517
Copy link
Author

Okay, I'm 99% sure I've sorta found the root cause on this.

It looks like pull request 345 is still open and it implies that audioplayers v5 isn't supported in the current release.

Looking at the flame_audio package, it appears to use audioplayers 5.

Any idea on when that PR is going to get merged in and released? I'm trying to decide what direction to take my project. :)

@ardera
Copy link
Owner

ardera commented Jan 15, 2024

Hey, you're right, #345 was the cause of this. Just merged it 😄

@MatthewJones517
Copy link
Author

Thanks so much! I appreciate it. :)

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

2 participants