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)
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.
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)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With