howle 0.1.1 howle: ^0.1.1 copied to clipboard
howler.js binding with dart:js_interop
howler.js dart:js_interop binding #
usage #
1、add howler.js to index.html
<!-- <script src="https://cdn.jsdelivr.net/npm/howler@2.2.4/dist/howler.min.js"></script> -->
<script src="assets/js/howler.min.js"></script>
<script src="assets/js/howler.spatial.min.js"></script>
2、import howle and use it
import 'package:howle/howle.dart';
Howl howl = Howl(HowlOptions(src: 'https://black_swan.mp3'.toJS));
howl.play();
howl.stop();