KB1203 - Turning off the Video Filter for a Single Link

Body

When you include a video link in your Moodle text, Moodle's built-in video filter will automatically turn your link into a video player.
Often, this is a great convenience, but occasionally you may not want that to happen. You may want your link to appear as a link, instead.

Here are instructions for suppressing the automatic filter on hyperlinks to videos:

Repressing Moodle's Filter on Video Links

Here's how you can edit a link to prevent embedding:

We'll use a YouTube link as an example. Most YouTube video URLs look like this when copied from the browser address bar*:

https://www.youtube.com/watch?v=VnuXUeEvspY

  • Paste this text into a Moodle resource (e.g. a Page resource).
  • Click the "HTML" toolbar button to switch the Moodle editor to HTML editing mode and place embed=no& between "watch?" and "v=".

*Do not use the link provided by clicking on Share and Copy. Be sure to use the one in the browser address bar.

The link should now look like this:

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

This will force Moodle to present the linked text as text, rather than converting the link into an embedded video.

This method should work on any shared link from a video service.

If the video link has no "?" argument in it already, then you can append the 'no embed' argument by appending it to the end of the link, like so:

http://myvideoservice.cojm/myvideo?embed=no

A Video Example

This video describes how you make an edit to a YouTube link, in order to suppress Moodle's automatic filter behaviour:

Details

Details

Article ID: 157
Created
Thu 12/5/19 2:30 PM
Modified
Thu 10/24/24 2:51 PM

Related Articles