Tuesday, December 3, 2024

Linked Vs. Embedded YouTube Videos in Moodle

I received a question from an instructor:

"I'm having an issue where, when I just want to hyperlink some text so that clicking on it takes you to an external YouTube link, Moodle automatically turns it into a video embed. That might be nice in some cases, but it doesn't work very well on a page where we are listing out a ton of resources. Is there a way to disable that "show the video" feature (in certain instances) and just hyperlink the text?"

Here is my reply:

Here is probably the easiest HTML hack I know of:

Here is the URL to a YouTube video you want to place as a URL resource in your Moodle course:

https://www.youtube.com/watch?v=8kNTbCxcPEA

Insert a "no embed" flag between "watch?" and "v=", like so:

https://www.youtube.com/watch?embed=no&v=8kNTbCxcPEA

This will force Moodle to show the linked video on a YouTube page, rather than embedding it in your course.

No comments: