-
Notifications
You must be signed in to change notification settings - Fork 45
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
Is there any way to get this working with Flutter Web? #17
Comments
I guess it could potentially be supported. At least on the browsers that supports the Web MIDI API. No plans at this point though, but happy to consider it if there is a need. |
I'm using FlutterMidiCommand for an iOS/Androd app I am working on. If you get this to work on Web that would be great for me too. (also MacOS and Win?) |
I would also be interested |
+1 |
Currently blocked by dart-lang/sdk#33248 the bridge to html does not initialise input and output maps correctly, but return empty maps. |
macOS support has just been released. |
I render with WebView, and flutter passes information to WebView |
Does not seem to work in 0.2.4 [!] CocoaPods could not find compatible versions for pod "flutter_midi_command": Specs satisfying the |
@systemcode what is your deployment target? |
flutter run -d macos Looks like everything is set up correctly to me. |
@systemcode Please file a separate issue regarding macos. |
Any update on this since the Flutter Web stable release? |
@stuartkuentzel No, it seems nothing relevant have changed in the html API. Contributions are welcome |
Just an update on this, I'm using a variation on the work around from this comment successfully with a flutter web app at the moment. My "variation" is that I've got the "wrapper" code in a JS file versus doing it purely from Dart code using dart:js but that should be just an implementation detail. My code is pretty rough at the moment (eg. only deals with 1 midi device) but I can try to clean it up and submit a PR if you would be interested in including it @mortenboye ? As a side note, it also seems to work ok with the brand new support for WebMidi that Firefox has just added in v97 (currently in nightly builds only). |
Sorry forgot to include a link to my current workaround code in the Flutter app project I'm using it in at the moment. |
Thanks @maks, you are very welcome to submit a PR. Web support in this library would be great to have. |
@mortenboye actually it turns out I can just do all this in a separate repo since you've already created the structure for federated plugins when you did the Linux platform support. Once its ready, it would be great if you could add it as an "endorsed" platform plugin. |
@maks that is great progress! |
Oh sorry @mortenboye I completely missed that! Yes, I'll switch over and make a PR to your existing repo. |
One thing I should also add is I'm depending on the very new js_binding package, it then depends on the latest version of package:js which means this only works on Flutter master channel for the moment. |
I think if we keep the web support on the dev branch initially, that should not be a problem. |
I really hope this package will support web. That would be great! Thanks for this package! |
If it isn't supported, are there plans to support it in the future?
The text was updated successfully, but these errors were encountered: