我正在尝试在我的应用程序的 VideoView 中加载视频,但是当我打开它时,它说它无法播放此视频。这是我的代码:
video=findViewById(R.id.mainVideoView);
Uri uri = Uri.parse("https://www.google.com/url?sa=t&source=web&rct=j&url=https://m.youtube.com/watch%3Fv%3DlLVrP_nzvB8&ved=2ahUKEwjjxtCQ_abgAhVUuXEKHTdUAggQwqsBMAR6BAgHEAU&usg=AOvVaw29VZ4OKcAgFXwyBjLjgTcN");
video.setVideoURI(uri);
MediaController mc = new MediaController(MainActivity.this);
video.setMediaController(mc);
video.requestFocus();
video.start();