0

What is the right way to play video which reside on Google Drive using VideoView control ?

Shai
  • 117
  • 6
  • 19

1 Answers1

0

Try using the url format of the video from Drive and display it in Android WebView

Uri uri = Uri.parse("https://drive.google.com/file/d/VIDEO_ID/view");
 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
 startActivity(intent);

You may also check this SO post for other workaround.

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56