Teaching with Moodle

Embedding video stored on Google Drive

Picture of Brian Evans
Embedding video stored on Google Drive

Here is a method for embedding video stored in your Google Drive.  I've tested it with 2.7 but I don't see why it wouldn't work with earlier versions.

  1. Upload your video to Google Drive

  1. Right-click the video and choose "Share...”

  1. Make sure sharing is set to "Anyone who has the link can view”

  1. Copy the "Link to share” from the box at the top of the dialog

  1. Click "Done”

  1. Paste and open the link in a new tab or browser

  1. At the top of the screen, click the icon with three vertical dots and choose "Embed item...”

  1. Copy the embed code

  1. In Moodle, open (or create) the activity/resource where you want to place your video

  1. In the editor (TinyMCE or Atto), open the HTML editor (<> in Atto)

  1. Paste the embed code where you want your video to appear.  

  1. You may want to change the size of the video - Google's default is 640x480, which is a lot of screen real estate on most devices.  Your users will be able to make it full screen if they wish.

Example HTML (The bold text is the embed code copied in step 8):

<p>My Video</p> <iframe src="https://docs.google.com/file/d/0Bw9mCKrvk_W3MXFKdTvxN7ZLdVE/preview" height="480" width="640"></iframe>

Average of ratings: Useful (1)
Picture of Stephen Ng
Re: Embedding video stored on Google Drive

Thanks for sharing this technique.

Formerly I have to use youtube or other video portals and add its hyperlink to moodle.

I think I will try some embedded videos in my new moodle application at www.sgtestpaper.com .

You mentioned 640x480 format. Can it handle High Definition format, as most cameras now stream videos this way. 

Average of ratings: -