You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: