flutter_ringtone_player icon indicating copy to clipboard operation
flutter_ringtone_player copied to clipboard

W/MediaPlayer(14698): java.io.FileNotFoundException: No content provider: /data/user/0/com.example.apk/cache/assets/sounds/ringtone.mp3

Open 0neCigarettes opened this issue 2 years ago • 1 comments

0neCigarettes avatar Jun 17 '22 08:06 0neCigarettes

How i can solve this?

my code:

FlutterRingtonePlayer.play( fromAsset: "assets/sounds/ringtone.mp3", volume: 1.0, looping: false, asAlarm: true);

0neCigarettes avatar Jun 17 '22 08:06 0neCigarettes

Hi, Im also facing the same issue .Sound plays but the error found in console .Do You know the reason ?

suhaib-raadan avatar Jan 12 '23 02:01 suhaib-raadan

Try add path source on pubspec.yaml :# To add assets to your application, add an assets section, like this: assets: - assets/ - assets/icons/ - assets/images/ - assets/images/backgrounds/ - assets/sounds/

And clean your flutter project

0neCigarettes avatar Jan 23 '23 11:01 0neCigarettes