ardera / flutter-pi

A light-weight Flutter Engine Embedder for Raspberry Pi that runs without X.
MIT License
1.48k stars 153 forks source link

MissingPluginException - method setSourceBytes (audioplayers) #408

Open bbence84 opened 1 month ago

bbence84 commented 1 month ago

I'm using audioplayers 5.0.0 in my Flutter project, and I'm getting MissingPluginException for the setSourceBytes method. According to the feature parity table here: https://github.com/bluefireteam/audioplayers/blob/main/feature_parity_table.md, this way of loading a resource should also work on linux (byte array).

Any ideas?

Thanks!

bbence84 commented 1 month ago

Maybe this is related? https://github.com/bluefireteam/audioplayers/issues/1154 Sorry, I am not really familiar with flutter-pi yet, and how it builds the projects to rpi...

ardera commented 1 month ago

Problem is that it's missing an implementation for setSourceBytes here: https://github.com/ardera/flutter-pi/blob/master/src/plugins/audioplayers/plugin.c

"linux" as a flutter plugin platform means "linux desktop", e.g. the GTK+ embedder, not flutter-pi, ivi-homescreen, sony embedder, etc. Custom embedders have to build the native code for any plugins they wish to support themselves