Embedding Videos in Moodle

When possible it’s best to keep students in Moodle when using Moodle to allow them easy return to course content, embedding videos from various hosts is the best way to do this with Video multimedia. If you made the video yourself, consider instead using Kaltura.

Many video hosting services offer Embed codes- this is a snippet of HTML code that you can paste into a webpage, this includes Moodle.

First, find your video’s embed code and leave the window/tab open or copy the text to your clipboard.

NOTE: Generally when looking at the video page there will be a Share button or link that contains embed code for you to use and possibly customize a bit.

Some services provide some tutorials for embedding videos:

Embed code often looks something like this:

<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/oVr1usOlYoA?rel=0″ frameborder=”0″ allow=”autoplay; encrypted-media” allowfullscreen></iframe>

Next, locate where in Moodle you want to put this video, a Page and Label resource are great places to put videos.

Make sure Editing it turned on.

Turn Editing On button is found in the top-right corner of a Moodle page you have permission to modify content for.

In the Text Editor locate the HTML button (you may have to first expand the listed controls)

If you’re adding an additional video embed:

We suggest pasting the embed code at the very top or very bottom of content unless you’re very comfortable with HTML.


If you’re adding a single new video embed:

Replace the little bit of default code with your embed code.

OPTIONAL: You can toggle the HTML button again to preview the look of things and ensure the embedded video functions- it may take a little longer to load than surrounding content.

Scroll to the bottom of the page and click the Save and display button to view the finished product.