在VideoView中找不到视频文件URL

时间:2019-06-07 13:33:08

标签: android android-videoview

在尝试播放远程视频文件时,出现异常:

W/MediaPlayer: Couldn't open https://faro.red/movmap/administrar/application/admin/postsmedia/8Lo6H0mapas.mov: java.io.FileNotFoundException: No content provider: https://faro.red/movmap/administrar/application/admin/postsmedia/8Lo6H0mapas.mov

但是该URL中有视频文件:

这是我的代码:

 post_media = prefs.getString("post_media", "no");

        String url = "https://faro.red/movmap/administrar/application/admin/postsmedia/";

        final VideoView videoView;
        videoView = (VideoView)v.findViewById(R.id.video);




        Uri video=Uri.parse(url+post_media);
        videoView.setVideoURI(video);

        videoView.start();

0 个答案:

没有答案