问题
I am new to Android and to this site so sorry for the questions that might be trivial.
I have a problem with setDataSource MediaMetadataRetriever (I have installed also FFmpegMediaMetadataRetriever and the problem is even worse).
My files are in /storage/removable/stdcard1//DCIM/... All files have been taken either with this mobile (Sony Z running 4.3) or Samsung S2,S4. I have tried to copy some of the files to the internal memory and I get the same issue
I have tried to access them with FileDesriptor and filepath.
The problem is the following: with the original MediaMetadataRetriever : some of the files taken with this phone AND ALL of those taken with Samsung are raising the are IllegalArgumentException. with the FFmpegMediaMetadataRetriever ALL files are raising IllegalArgumentException.
I have installed my app on Samsung S3, S4 and Moto G and get the same problem. Can someone help me?
thank you
来源:https://stackoverflow.com/questions/22778011/mediametadataretriever-setdatasource-illegalargumentexception