Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

orejime_videos

3 sites Security covered
View on drupal.org

Orejime Complient Vidéos

Module replace embeded vidéos into placeholder with custom message and urls.

The module provide a text filter and a oEmbed widget for media.

The embeded vidéos content are placed in a <template> element and a custom html element is placed in place of the original element.
When the user accept the consent, the content of the is put in the dom and placeholders are removed.

Requirements

This module require Orejime to be installed and running.

Installation

Install as you would normally install a contributed Drupal module.
For further information, see Installing Drupal Modules.

Configuration

Once the module is enabled, go to your text filters and enable the Convert Videos into Orejime Videos filter.

If you plan using the oEmbed widget on media

If you want to use the oEmbed widget on media, go to your medias display and change the widget of oEmbed field to Orejime oEmbed content

Warning if you are using orejime video text filter, check that textfilter do not run on media that are using the custom widget.
If it happens, simply put the media text processor after the oreijme video text processor.

Configuring the filtered domains

The module doesn’t provide, for now, configuration in the admin.
You will need to edit the orejime_videos.settings.yml in your config file and reimport it.

Inside the filtered_domains you can setup a list of custom consent (by default we provide examples for youtube, vimeo and twitter).
Example:

  youtube:
    orejime_consent: youtube
    domains:
      - youtube.com
      - youtu.be
    htmlToExtUrl:
      -
        pattern: '/<iframe[^>]*src\s*=\s*"(?:https?(?::|%3A)\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/(?:watch|embed)?(?:.*v=|.*v%3D|v\/|\/)([\w\-_]+)\&?/im'
        replacement: 'https://youtu.be/$1'

For each consent you can define:

  • orejime_consent: the name of the consent in orejime.

    You can use the same orejime consent name for multiples filters

  • domains: the domains names of the service you want to filter, this need to be an array
  • htmlToExtUrl: a set of rules to replace the "embed" code into the orejime video placeholder.

    Please note that this field allow multiples entries if needed.

    • pattern: a regexp pattern for the replacement.
      Use capturing groups to get elements of the embed that can be used to generate url replacement
    • replacement: embed is also replaced by an external url so the user can watch the video outside the website.
      That external url use the capturing group values.

Translate displayed message

Message displayed can be translated in Drupal's translate interface

Change displayed message

You can change the displayed message by copy pasting the template to your custom theme and edit it.

Orejime configuration

Please refer to Orejime documentation.

Here is an example of apps configuration for orejime:

                {
                  name: "youtube",
                  title: "Youtube",
                  cookies: ["matomo_session", "pk_id", "pk_ses", "_pk_ref", "_pk_cvar"],
                  purposes: ["analytics"],
                  default: false
                },
                {
                  name: "vimeo",
                  title: "Vimeo",
                  cookies: ["matomo_session", "pk_id", "pk_ses", "_pk_ref", "_pk_cvar"],
                  purposes: ["analytics"],
                  default: false
                },
                {
                  name: "twitter",
                  title: "Twitter",
                  cookies: ["matomo_session", "pk_id", "pk_ses", "_pk_ref", "_pk_cvar"],
                  purposes: ["analytics"],
                  default: false
                }

Theme adaptation

Since we replace your
You will need to adapt your theme to apply your video styling to the placeholder.

Activity

Total releases
4
First release
Feb 2025
Latest release
2 months ago
Release cadence
114 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.1.0 Stable Jan 23, 2026
1.0.4 Stable Jan 22, 2026
1.0.3 Stable Nov 17, 2025
1.0.2 Stable Feb 14, 2025