I am trying to load a video in VideoView in my app but when I open it, it says that it can't play this video. This is my code:
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();