instrumentisto / medea-jason

Mozilla Public License 2.0
2 stars 2 forks source link

Migrate Dart sources from `dart:html` to `package:web` #178

Closed SleepySquash closed 3 months ago

SleepySquash commented 4 months ago

Synopsis

dart:html and package:js aren't compatible with WASM compilation.

Solution

Replace dart:html with package:web and package:js with dart:js_interop packages.

Things left to do:

Checklist

SleepySquash commented 4 months ago

FCM

Migrate Dart sources from `dart:html` to `package:web` to support WASM (#178)
SleepySquash commented 4 months ago

@alexlapa, dartanalyze fails, cuz medea_flutter_webrtc needs to be updated first in order for the migration to properly work (medea_flutter_webrtc expects tracks to be from dart:html and not from the package:web). Not sure how this should be approached. Probably should first release medea_flutter_webrtc and only then proceed with this package.

Despite my tests, please, be sure to check both the web and native Flutter implementations still work.