Movies & YouTube

At the standard page and most other pages there is the 'Movie' block, which can be used to embed a previously uploaded movie on the web page. An alternative is the 'YouTube' block, which can (and must) be used when loading content from YouTube. For privacy reasons, YouTube blocks should be used sparingly, as users who do not allow the YouTube plugin will not be able to view these videos.

Movie block

Go to Wagtail interface, Media and add a new media object. Not every browser can play any video file, so each video should be uploaded as mp4 and as webm file. In the upload dialog there is also the possibility to upload smaller file versions or to add a link to the video with original resolution.

It is also useful to upload a preview image - this serves as a placeholder until the video is started.

More information will follow soon.

YouTube Block

If you want to embed content from YouTube, please only use the YouTube block. Manual embedding via the HTML block is not permitted, as this would contradict the data protection guidelines. The YouTube block is designed so that the content is only loaded if the user gives or has already given his or her consent. If the movie could also be uploaded directly to the website and embedded via the Movie block, this method is to be prefered.

For embedding a YouTube movie, the embed URL with YouTube's extended privacy mode must be used, i.e. the embed URL must start with https://www.youtube-nocookie.com/ accordingly. How to find the correct embed URL:

  • Go to the video on the YouTube website.
  • Click "Share" under the video on the right side.
  • You will now see the default URL to share, for example: https://youtu.be/KMvHpr-F_Fs
  • Click "Embed." In the window that appears now, scroll down below the iframe code and check "Enable privacy-enhanced mode".
  • Now search for the URL (src attribute) in the iframe code. For this example this would be: https://www.youtube-nocookie.com/embed/KMvHpr-F_Fs.
  • Copy this URL and insert it into the YouTube block.
  • You can also derive the URL you need from the default URL by simply replacing https://youtu.be/ with https://www.youtube-nocookie.com/embed/.
Last update: 9. February 2021