How to embed videos from Google drive to webpage?

后端 未结 1 1522
北海茫月
北海茫月 2020-12-17 18:29

I\'m trying to load a video on a web page and for YouTube embed code it works. However, when I replace the src in the code with a Google Drive Link of a video (with sharing

相关标签:
1条回答
  • 2020-12-17 19:28

    You need to use the Google Drive Embed option. This is the URL you are looking for: https://drive.google.com/file/d/1pdvh_mEnkXPKA3jivYIpYKTaoukxH5p3Yg/preview

    <html>
    <head>
    </head>
    <body>
    <iframe width="100%" height="100%" src="https://drive.google.com/file/d/1pdvh_mEnkXPKA3jivYIpYKTaoukxH5p3Yg/preview"></iframe>
    </body>
    </html>
    

    You can make it autoplay by appending ?autoplay=1 to the URL so it is now https://drive.google.com/file/d/1pdvh_mEnkXPKA3jivYIpYKTaoukxH5p3Yg/preview?autoplay=1.

    0 讨论(0)
提交回复
热议问题