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

Windows support? #21

Open
syleishere opened this issue Mar 15, 2021 · 0 comments
Open

Windows support? #21

syleishere opened this issue Mar 15, 2021 · 0 comments

Comments

@syleishere
Copy link

I am trying to start a music player in an isolate and I get dart:ui not found, my understanding is isolates can't execute flutter plugins because of way isolates work, but i am trying to find a quick hack to play the music in new isolate. Rather implement it myself than use someone else's plugin to get an understanding of how they pull it off. So one thing I have seen is people using handle = PluginUtilities.getCallbackHandle . So my question is what does this really do? It says it executes a callback from top level function, just like entering new isolate code I assume with a static void function. So my question is if you retrieve a handle to this function, will I be able to start the music player in there? And if so is it actually playing the music in the new isolate then, or defeating purpose and executing in main thread? Will it solve the dart:ui problem?

Someone can help me here much appreciated, shouldn't be this hard to start a music player plugin in a new isolate, not even touching main UI.

I'm using import 'package:flutter_audio_desktop/flutter_audio_desktop.dart'; // for windows
to play audio in windows right now, just trying to get this to work in isolate

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

1 participant