Android Studio出现java.io.FileNotFoundException: No content provider: http://vfx.xxx.cn/Video/.mp4解决方案

2022年5月27日 1450点热度 0人点赞 0条评论

W/MediaPlayer: Couldn't open http://vfx.mtime.cn/...
java.io.FileNotFoundException: No content provider: http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1688)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1518)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1435)
at android.media.MediaPlayer.attemptDataSource(MediaPlayer.java:1155)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1114)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1151)
at xyz.doikki.videoplayer.player.AndroidMediaPlayer.setDataSource(AndroidMediaPlayer.java:47)
at xyz.doikki.videoplayer.player.VideoView.prepareDataSource(VideoView.java:307)
at xyz.doikki.videoplayer.player.VideoView.startPrepare(VideoView.java:291)
at xyz.doikki.videoplayer.player.VideoView.startPlay(VideoView.java:211)
at xyz.doikki.videoplayer.player.VideoView.start(VideoView.java:184)
at com.shellway.myfirstapp.fragment.VideoFragment.startPlay(VideoFragment.java:306)
at com.shellway.myfirstapp.fragment.VideoFragment.onItemChildClick(VideoFragment.java:279)
at com.shellway.myfirstapp.adapter.VideoAdapter$ViewHolder.onClick(VideoAdapter.java:88)
at android.view.View.performClick(View.java:7185)

小小调酒师

此刻打盹,你将做梦; 此刻学习,你将圆梦。 个人邮箱:shellways@foxmail.com

文章评论