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

Error in setDataSource #16

Closed
MrMontazer opened this issue Aug 31, 2021 · 3 comments
Closed

Error in setDataSource #16

MrMontazer opened this issue Aug 31, 2021 · 3 comments
Labels
question Further information is requested

Comments

@MrMontazer
Copy link

When I use the following code, the continuation of the code stops without any error
await MetadataRetriever.fromFile(File(songInfo.filePath));

I tried to find the library problem to fix it
image
I noticed that an error occurs when using setFilePath (retriever.setFilePath(filePath);)
image
This function gives java.lang.IllegalArgumentException error without any message

@alexmercerind alexmercerind added the question Further information is requested label Sep 1, 2021
@alexmercerind
Copy link
Owner

alexmercerind commented Sep 1, 2021

Could you show what argument are you actually passing? Without it I cannot tell what is wrong.

https://github.com/harmonoid/flutter_media_metadata/blob/f7773003d97d6310f6aebf2d76bd6a19a65e6955/example/android/app/src/main/AndroidManifest.xml#L11

You might wanna use legacy storage access if you are using API 29 or 29+. I'm not much Android expert.

@MrMontazer
Copy link
Author

MrMontazer commented Sep 1, 2021

rec.mp4

This video shows the problem. The continuation of the code stops, "worked" will not print and catch also does not run
I used to use this library but now it does not work. I tried to use the previous versions but it did not work

@MrMontazer
Copy link
Author

I did not try android: requestLegacyExternalStorage="true" because I am using Android 10 (API 29).
But now I tried and it worked for me.
Thank you very much, my problem was solved. But I don't know why I did not have this problem before

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

No branches or pull requests

2 participants