Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: How to prevent YouTube embedding

...

  • Create a new page in Moodle (under add a resource)
  • Go to the HTML source view by clicking on the "HTML" button in the content box (bottom row of the toolbar, right hand side)
  • Go to YouTube or Vimeo and copy the video embed code. This is under the "Share" link.  
  • Paste the embed code into the Moodle page content box.
  • Save the page.

Preventing Auto-Embedding of YouTube Videos

If you create a link to a YouTube video in a label, page, or other description field, Moodle will automatically embed the YouTube video instead of just linking to the video.  If you just want a simple link, you can do one of the following things:

  1. Add the link by using Add a resource or activity - URL.  This will not embed the video.
  2. Turn off automatic multimedia embedding for your course.  This can be set under Settings → Course administration → Filters → Multimedia plugins → Off.  This setting will affect content in the entire course.
  3. Edit the YouTube link to prevent auto-embedding. For example, if the YouTube link is http://www.youtube.com/watch?v=0PfzLRs7YC0, adding a parameter to the middle will prevent auto-embedding: http://www.youtube.com/watch?embed=no&v=0PfzLRs7YC0 (add the text in bold to the URL).  Note for advanced users: Moodle is looking for a match for watch?v=, so adding something to the middle disrupts the filter.

Uploading a video to Moodle

...