+ 2

How do I add video to html from my web storage?

I want to add video from my google drive to html. I'm coding like this: <html> <head> </head> <body> <video controls> <source src="https://drive.google.com/file/d/12yOUiPO5ksRTQTiIuz0Kg8TaVP6cXI6I/view?usp=drivesdk" type="video/mp4"> Video is not supported by your browser </video> </body> </html> I've added video like this but the video doesn't play.I need help to fix the problem.

11th Sep 2020, 6:56 AM
Gourab Sutradhar
Gourab Sutradhar - avatar
4 Answers
+ 2
Yes,it is public.
11th Sep 2020, 8:53 AM
Gourab Sutradhar
Gourab Sutradhar - avatar
+ 1
Run this code and read it. It will help you https://code.sololearn.com/WW6t4B73kJVz/?ref=app
11th Sep 2020, 9:21 AM
Kayla Onobun (QOG)
Kayla Onobun (QOG) - avatar
0
For drive video first you have to make that file public so that it can accessed/open by all users.
11th Sep 2020, 7:26 AM
Divya Mohan
Divya Mohan - avatar
0
I want to use file from my google drive.I know how to use dropbox file on code playground.
11th Sep 2020, 11:42 AM
Gourab Sutradhar
Gourab Sutradhar - avatar