-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Labels
Description
I have stored an audio file in app's document directory (getting the path with 'getApplicationDocumentsDirectory()').
When I tried to play this audio from this path, i am getting the exception: "Please specify the sound source."
the filePath is like, '/data/user/0/......../app_flutter/alarm_sound.mp3'
try {
await FlutterRingtonePlayer().play(
fromFile: filePath );
} catch (e) {
log(e.toString());
}
When I tried to play from assets using 'fromAsset', its working, but can't play this file which is stored in the app
Reactions are currently unavailable