Teachers with editing access in a Moodle course, can embed YouTube videos using the Atto editor.
- Edit the Moodle Page, Label or Book chapter, where you want to embed the YouTube video.
- Click the arrow from the top left of the Atto editor.
- Click the HTML icon from the bottom row.
- Copy and paste HTML code below:
<div class="container">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/paste-the-YouTube-video-ID-here" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
</div>
</div>
- Find the YouTube link of the video you want to add to Moodle and copy the random alphanumeric characters that appear after the
=
sign.
- Return to the code you pasted in Moodle (step 4), delete the sentence
paste-the-YouTube-video-ID-here
and paste the alphanumeric ID you copied in Step 5 right after/
. - Save changes.