MediaMetadataRetriever setDataSource throws IllegalArgumentException

后端 未结 5 1708
一个人的身影
一个人的身影 2020-12-01 14:18

I\'m trying to get the size of a remote video using this class and i\'m getting IllegalArgumentException if the video is remote.

the video is an mp4 stored in one se

5条回答
  •  半阙折子戏
    2020-12-01 15:05

    I was getting the same error, I am using android 10.

    I solved just putting android:requestLegacyExternalStorage="true" in Manifest inside application.

    See here

    
    
    
    
        
            
                
    
                
            
        
    
    

提交回复
热议问题