Closed SleepySquash closed 3 months ago
Migrate Dart sources from `dart:html` to `package:web` to support WASM (#178)
@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.
Synopsis
dart:html
andpackage:js
aren't compatible with WASM compilation.Solution
Replace
dart:html
withpackage:web
andpackage:js
withdart:js_interop
packages.Things left to do:
medea_flutter_webrtc
topackage:web
_getName
helper fromjs_util
tojs_interop
Checklist
k::
labels applied