How do I access the MediaMetadataRetriever.setDataSource(...) status codes?

Andrew Orobator picture Andrew Orobator · Jan 9, 2014 · Viewed 9.3k times · Source

I'm getting the following error java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA and I'd like to know what this status is. I'm using the function MediaMetaDataRetriever.setDataSource(String filePath)

Answer

Kirill Karmazin picture Kirill Karmazin · Jun 5, 2017

I got this error java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA when tried to call void setDataSource(String path) on an empty file. (0 bytes)

You need to be 100% sure that path for the file is not null, not empty, the file itself exists and valid.