Skip to content

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

@MatthewJones517

Description

@MatthewJones517

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions