$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on Ubuntu 16.04.7 LTS 4.15.0-142-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Community Edition (version 2019.1)
[✓] VS Code (version 1.64.2)
[✓] Connected device (2 available)
$ uname -a
Linux me-MS-7B24 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
And my test code
onPressed: () async {
...
else{
final player = AudioPlayer();
await player.setAsset('audios/passing.wav');
await player.play();
await player.stop();
await player.dispose();
}
}
And Result on Pressed
flutter: UnimplementedError: disposeAllPlayers() has not been implemented.
1 0x7ffab2534237 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18(WTFCrash+0x17) [0x7ffab2534237]
2 0x7ffab319a06f /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0x6d606f) [0x7ffab319a06f]
3 0x7ffab31899f0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(+0x6c59f0) [0x7ffab31899f0]
4 0x7ffab34111da /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37(webkit_web_view_run_javascript+0xfa) [0x7ffab34111da]
5 0x7ffab53c8c8a /home/jaehyung/programming/flutter_projects/diener_application/build/linux/x64/debug/bundle/lib/libwinmedia.so(_ZN7webview17gtk_webkit_engine4evalENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x5a) [0x7ffab53c8c8a]
6 0x7ffab53bf678 /home/jaehyung/programming/flutter_projects/diener_application/build/linux/x64/debug/bundle/lib/libwinmedia.so(_ZN6Player9SetVolumeEf+0x98) [0x7ffab53bf678]
7 0x7ffab53c178d /home/jaehyung/programming/flutter_projects/diener_application/build/linux/x64/debug/bundle/lib/libwinmedia.so(PlayerSetVolume+0x3d) [0x7ffab53c178d]
8 0x7ffad7b8597b [0x7ffad7b8597b]
Lost connection to device.
Thanks very much for providing this package for desktop platforms.
I'm trying to use just audio on linux, but it does not work well.
my pubspec.yaml
my versions
And my test code
And Result on Pressed
Thank you!