Exception when calling setDataSource(FileDescriptor) method (failed.: status=0x80000000)

前端 未结 10 1081
野性不改
野性不改 2020-12-09 01:57

I\'m developing a video streaming application and I\'m getting stuck when calling set setDataSource with a FileDescriptor. I want my application to play the video as it is b

10条回答
  •  失恋的感觉
    2020-12-09 02:29

    If you're targeting Marshmallow or greater, make sure that you have requested the Manifest.permission.WRITE_EXTERNAL_STORAGE permission properly. I tried many different solutions, including another library that's an alternative to MediaMetadataRetriever, but it turned out that one of my code paths didn't request the proper permission.

提交回复
热议问题