我试图通过网址播放视频,但我收到了错误消息。我尝试了不同的东西,但每次都会弹出一个警告对话框,说明“无法播放此视频”#34;。这是我的代码。感谢
String path = "http://tune.pk/video/3658227/alf-capitulo-19";
VideoView videoView = (VideoView) findViewById(R.id.videoView);
MediaController controller = new MediaController(this);
controller.setAnchorView(videoView);
videoView.setMediaController(controller);
videoView.setVideoURI(Uri.parse(path));
videoView.start();
logcat中的错误
06-04 13:40:31.563:E / MediaPlayer(12565):错误(1,-1004)