opus_flutter_web

The web implementation of opus_flutter.

Usage

Import the package

This package has been endorsed, meaning that you only need to add opus_flutter as a dependency in your pubspec.yaml. It will be automatically included in your app when you depend on package:opus_flutter.

This is what the above means to your pubspec.yaml:

...
dependencies:
  ...
  opus_flutter: ^3.0.0
  ...

If you wish to use the web package only, you can add opus_flutter_web as a dependency:

...
dependencies:
  ...
  opus_flutter_web: ^3.0.0
  ...

How opus is contained in this package

Emscripten was used to build WebAssembly and the JavaScript glue. The build commands can be found in the Dockerfile. Then, both, the WebAssembly and JavaScript file are added as Flutter assets and used from there. See web_ffi's example for more information on how WebAssembly can be loaded.

Libraries

opus_flutter_web