Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get file path where the file is saved #29

Open
rajeevjaiswal opened this issue Mar 4, 2021 · 2 comments
Open

How to get file path where the file is saved #29

rajeevjaiswal opened this issue Mar 4, 2021 · 2 comments

Comments

@rajeevjaiswal
Copy link

Can you please tell me how to retrieve the file path

@kamleshwebtech
Copy link

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

@aarjan
Copy link

aarjan commented May 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants