this is my code
mVideoView = (VideoView) findViewById(R.id.videoview);
VideoView videoView = findViewById(R.id.videoview);
// videoPath="https://drive.google.com/open?id=1dXndP-MjQL7USlP0EtaElx67mXujqCSX";
//
Uri uri = Uri.parse(videoPath);
videoView.setVideoURI(uri);
MediaController mediaController = new MediaController(this);
videoView.setMediaController(mediaController);
mediaController.setAnchorView(videoView);
You have to edit the link. Use String functions to edit the text.
Replace
open?
withuc?authuser=0&
.Add
&export=download
at URL text ending.so
videoPath=
like below:becomes:
Example code: