Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module ensures that embedded external media, like YouTube or Power BI, is only loaded after a user gives cookie consent through Orejime. It replaces embeds with a placeholder until consent is granted, and will revert to the placeholder if consent is withdrawn. This provides a privacy-compliant way to handle embedded content without manual configuration for each instance.

Orejime Media ensures external media (such as YouTube, Vimeo, and Power BI) is only loaded after a visitor gives cookie consent through Orejime. Without consent, the module shows a clear placeholder with a link to grant consent or open the media externally.

Features

  • Automatically replaces supported frontend media embeds with a consent placeholder.
  • Dynamically loads the real embed after consent is granted; if consent is withdrawn, it restores the placeholder.
  • Service mapping through config entities (orejime_media_service) with:
    • Consent key => required
    • Media source plugin ID => optional
    • Domain matching (multiple domains supported)
  • Ships with example configurations for YouTube, Vimeo, and Power BI.
  • Useful for privacy-compliant embed handling without manually editing each embed.

Post-Installation

After installing, manage services at:
/admin/config/media/orejime-services

Steps:

  1. Add an “Orejime media service” per external provider, or start from the included examples.
  2. Enter the consent key exactly as used in Orejime (format like power-bi or youtube).
  3. Optionally map a media source plugin and/or provider domains.
  4. Check media display formatters (for example oembed) so the module can match and wrap output.

The module works on existing media field output.

Additional Requirements

  • Drupal core modules: Config, Media
  • A working Orejime consent setup on the frontend.

Orejime configuration

Please refer to Orejime documentation.

Here is an example of apps configuration for orejime:

{
    name: "youtube",
    title: "Youtube",
    cookies: ["pk_id", "pk_ses", "_pk_ref", "_pk_cvar"],
    purposes: ["analytics"],
    default: false
},
{
    name: "vimeo",
    title: "Vimeo",
    cookies: ["pk_id", "pk_ses", "_pk_ref", "_pk_cvar"],
    purposes: ["analytics"],
    default: false
},
  • Optional media-related modules for additional embed providers. ex. Media Power BI

Similar projects

orejime_videos provides similar video consent behavior, while orejime_media is more generic through service mapping (consent key + media source + domains) and can handle non-video embeds like Power BI.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
1 week ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Aug 12, 2026