flutter_audio icon indicating copy to clipboard operation
flutter_audio copied to clipboard

How to get file path where the file is saved

Open rajeevjaiswal opened this issue 3 years ago • 2 comments

Can you please tell me how to retrieve the file path

rajeevjaiswal avatar Mar 04 '21 10:03 rajeevjaiswal

This is primary requirement of developer, should be included before launching this package. Without this feature, it is useless.

kamleshwebtech avatar Mar 11 '21 15:03 kamleshwebtech

You can get the stored file path using,

import 'package:path_provider/path_provider.dart';

final fileName = ''; // file_name used in startRecord
final filePath = await getApplicationSupportDirectory();
final audioFile = File('${filePath.path}/$fileName.aac'); // .aac is the default extension used by the library

aarjan avatar May 15 '21 05:05 aarjan