Flutter-播放自定义声音是否已更新? [英] Flutter - Play custom sounds updated?
本文介绍了Flutter-播放自定义声音是否已更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试自定义播放mp3声音.我找到了这个概念验证插件:
I am trying to play a custom mp3 sounds in flutter. I found this proof-of-concept plugin:
https://github.com/rxlabz/flutter-mediaplayer-plugin
但是它说它已经过时了.另外,它也找不到PlatformMessages类(我猜应该在services.dart中)
But it says that it is outdated. Also, it doesn't find the PlatformMessages class (which I guess should be in services.dart)
是否有任何修复方法或其他方法?
Any fix or other way of doing it?
推荐答案
此存储库较新,
https://github.com/rxlabz/flutter_audio
并举个例子
https://github.com/rxlabz/flutter_audio/blob/master/example/lib/main.dart
这篇关于Flutter-播放自定义声音是否已更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文