Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Orejime media

No security coverage Under active development 1 sites

Part of the Orejime ecosystem · 4 projects

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.

Drupal 10–11

Ask your assistant about Orejime media

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • config Drupal core
  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Aug 2026
Latest release
2 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 10–11 Sep 18, 2026
1.x-dev Dev 10–11 Sep 18, 2026
1.0.1 Stable 10–11 Sep 16, 2026
1.0.0 Stable 10–11 Aug 12, 2026