Actually, Flutter Sound uses Javascript code when used on Flutter Web.
It is helped by a Howler library which is also in Javascript.
Using Javascript is very good for portability. Everybody uses Javascript. It will be very simple, to port this code on a Javascript framework like Vue JS or React JS if we want to do this, one day.
But there are drawbacks :
Actually I have not found a good way to link this javascript code with the Flutter App. Many (too many) developers have problems because our Javascript code is badly inserted inside their index.html file.
The debugging is painful, because we must use two tools :
The Android Studio or VS-Code
The Chrome developer tools
Javascript is a bad language. If we really do not want to use dart, we must switch to TypeScript
It seems that the Howler library has a bug in setSpeed() : the pitch is impacted when we change the speed. This is funny, but this is not correct. I tried to patch the Howler library but I was unsuccessful.
Actually I am considering to port this Javascript to Dart, and maybe replace the Howler Library by the JustAudio library.
The JustAudio library is simpler than Howler, is correctly documented, is maintained and seems to work fine.
Actually, Flutter Sound uses Javascript code when used on Flutter Web. It is helped by a Howler library which is also in Javascript.
Using Javascript is very good for portability. Everybody uses Javascript. It will be very simple, to port this code on a Javascript framework like
Vue JS
orReact JS
if we want to do this, one day.But there are drawbacks :
Actually I have not found a good way to link this javascript code with the Flutter App. Many (too many) developers have problems because our Javascript code is badly inserted inside their
index.html
file.The debugging is painful, because we must use two tools :
Javascript is a bad language. If we really do not want to use dart, we must switch to TypeScript
It seems that the Howler library has a bug in
setSpeed()
: the pitch is impacted when we change the speed. This is funny, but this is not correct. I tried to patch the Howler library but I was unsuccessful.Actually I am considering to port this Javascript to Dart, and maybe replace the Howler Library by the JustAudio library. The JustAudio library is simpler than Howler, is correctly documented, is maintained and seems to work fine.