How do I access the MediaMetadataRetriever.setDataSource(...) status codes?
I didn't have an empty file or any other of the here mentioned bugs in my code. The files I tried to use were fine. I don't exactly know why, but it worked for me when I simply used another overload of setDataSource
.
The ones I used that threw this exception were MediaMetadataRetriever.setDataSource(String)
and MediaMetadataRetriever.setDataSource(String, HashMap)
The one that simply worked was MediaMetadataRetriever.setDataSource(Context, URI)
.
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.