Closed nt4f04uNd closed 3 years ago
actually, it works with setFile
, i.e https://developer.android.com/reference/android/media/MediaMetadataRetriever#setDataSource(java.lang.String)
setUri
always fails with local paths
https://developer.android.com/reference/android/media/MediaMetadataRetriever#setDataSource(java.lang.String,%20java.util.Map%3Cjava.lang.String,%20java.lang.String%3E)
MediaDataRetreiver allows you to fetch contents of files in
content://
without direct file path. Currently it's simply not working, because for it to work MediaDataRetreiver must get Uri as parameter for setDataSource