# Video-Wall

Automatic conditioning of the main video players’ cookies (Youtube, DailyMotion, Vimeo, ...) and display of a message in the player in case of lack of consent.

### How does it work ?

The video players use trackers subject to the ePrivacy directive requiring the user's consent prior to be used.

Sirdata's Video Wall conditions these videos’ playback to the user's choice:

* When they consent, the video is accessible as usual;
* When they refuse the processing of their data, or they don’t make any choice, the following message is displayed :

![Example of message displayed when no consent is given](/files/zZoipm02E9ulU9yUjaR7)

This allows the users to easily unlock the video if they wish to view it.

### Automatic compatibility with

![](/files/dcp89V0nesTf6se8tqUt)

## Rates

This service is billed monthly by volume of hits ('pageview' equivalent) per domain according to the below :

![](/files/jjXN9ysFjYQ50x2vrkHZ)

## Activation & integration request

If you are already a Sirdata customer, use your [Sirdata account](https://cmp.sirdata.io/) to contact us, otherwise use our [contact form](https://sirdata.com/en/Contact).

### Integration Guide: Sirdata YouTube Blocking (wyoutube.js)

This section details the implementation of the `wyoutube.js` script, specifically designed for blocking YouTube videos. Adhering to the loading order is essential for GDPR compliance.

#### Operating Principle

The `wyoutube.js` script is an interceptor that listens for consent signals and must be loaded before any other tag that might interact with YouTube.

#### YouTube-Specific Features

The role of the script is to detect attempts to load YouTube videos and apply the consent rule:

* Without consent: The script blocks the loading of YouTube. A message is displayed in place of the video, inviting the user to provide consent to unlock the content.
* With consent: The script allows YouTube to load the video normally.
* Unblocking: Content unlocks instantly as soon as the choice is made, without requiring a page reload.

#### Implementation Method (Unique and Mandatory)

The insertion of the script must guarantee that it loads first to intercept any call to YouTube.

The YouTube blocking script must be placed directly in your site's HTML code, as high as possible within your `<head>` tag.

#### Crucial Loading Order

The script must imperatively be loaded before:

* Your CMP (Consent Management Platform) scripts.
* The Google Tag Manager (GTM) script.
* Any YouTube loading script or tag.

#### Code structure in your `<head>`:

```
<head>
    <script type="text/javascript" src="https://cdn.sirdata.eu/wyoutube.js?pa=12345"></script>  <!-- REMPLACER 12345 PAR VOTRE ID PARTENAIRE SIRDATA -->

    <!-- Ici DOIVENT suivre les autres scripts (CMP, GTM, YouTube) -->
</head>
```

#### Why not use GTM for this script?

Insertion via GTM is prohibited for this script. GTM loads after the initial DOM, which is too late and would result in a "flicker" effect (the protected content appearing for a few milliseconds before being hidden).

#### Validation Tests

To validate your installation:

1. Open your site in private browsing mode.
2. Verify via your browser's "Network" tab that calls to `youtube.com` are not made during the initial page load.
3. The content must remain blocked and display the consent invitation message until you interact with the consent banner.
4. Ensure that the partner ID in the script URL (12345) is indeed the one for your Sirdata account.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmp.docs.sirdata.net/en/cmp-services/video-wall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
