flutter_web_howl 1.0.0 copy "flutter_web_howl: ^1.0.0" to clipboard
flutter_web_howl: ^1.0.0 copied to clipboard

A new Flutter web package that import & wrap the Howl.js library, to be used in Web Plugin

flutter_web_howl #

Howl.js wrapper for Flutter

https://pub.dev/packages/flutter_web_howl

You can now include Howl.js using initializeHowl() anywhere in your FlutterWeb plugin

Then access Howl methods :

class Howl {
  Howl({List<String> src, bool autoPlay = false});

  void play();
  void pause();
  void stop();

  HowlState state(); //loading, loaded, undefined

  double seek([double seek]);
  void mute(bool mute);
  bool get playing;
  double volume([double volume]);
  double get duration;
  void on(String event, Function callback);
  void onLoad(Function(dynamic id) callback);
  void onPlay(Function(dynamic id) callback);
  void onPause(Function(dynamic id) callback);
  void onStop(Function(dynamic id) callback);
  void onEnd(Function(dynamic id) callback);
}

Created using Package Js https://pub.dev/packages/js

And import_js_library https://pub.dev/packages/import_js_library

Flutter Plugin #

this project is used for web support of Flutter-AssetsAudioPlayer

https://github.com/florent37/Flutter-AssetsAudioPlayer

To import & use play directly songs inside a flutter project, prefer using Flutter-AssetsAudioPlayer

To create a web plugin which contain an audio player, use directly this library flutter_web_howl

4
likes
30
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter web package that import & wrap the Howl.js library, to be used in Web Plugin

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, import_js_library, js

More

Packages that depend on flutter_web_howl