MediaMetadataRetriever setdatasource IllegalArgumentException

冷暖自知 提交于 2021-02-08 04:32:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!