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

前端 未结 6 1071
无人共我
无人共我 2020-12-16 14:21

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

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 15:10

    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).

提交回复
热议问题