Teachers with editing access in a Moodle course, can embed YouTube videos using the Atto editor.
- Edit the Moodle Page, Text and media area 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" title="YouTube video player"
src="https://www.youtube.com/embed/paste-the-YouTube-video-ID-here" frameborder="0"
allow="accelerometer; autoplay; web-share"
allowfullscreen="allowfullscreen"
referrerpolicy="strict-origin-when-cross-origin"></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-hereand paste the alphanumeric ID you copied in Step 5 right after/. - Save changes.