Skip to content

'fromFile' not working #70

@Ajai-Joseph

Description

@Ajai-Joseph

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions