Embedding YouTube videos in Moodle

To embed a YouTube video in Moodle

You can embed a YouTube video in any text entry box with a formatting tool bar in Moodle, such as within the Topic summary, or in the main body of a composed web page.

    Note: You can embed a YouTube video directly into the front page of your course using the label resource, however it is not a good idea to add too many YouTube videos into the main course page in this way, as they take up a significant amount of space and increase the time it takes to download the main page.

  1. In a topic, click the Add a resource drop-down list and select Compose a web page.

    add web

  2. In the Name field, write the name of the page such as the title of the YouTube video.
  3. Go to YouTube and find the video you want to embed.
  4. Click the Share button under the video to show the share options.
  5. Click the Embed button.
  6. Click in the Embed field to select the embed code.

    embed

  7. Copy this code (use the shortcut keys Ctrl + C, or go to the Edit menu and choose copy)
  8. Go back into Moodle.
  9. In the Page content field, click the HTML icon html icon. The page source window will open.
  10. Paste the embed code you collected from Youtube. (Use CTRL-V)   

    embed2

  11. Click the Update button. You will return to the editor, and you should see the Youtube video in the editing screen.

    embedded video

  12. Scroll down to the bottom of the page and click Save and return to course or Save and display.