Accepting cookies updates videos with 404, Rejecting does nothing
-
Hi,
thanks in advance for your support.
We are dealing with a few problems. Initially we thought that we could use YouTube embeds simply by passing the HTML iframe diretly to the PHP template. But it doesn’t seem to work well with Complianz:
<ul class="v-single-artist__videos-list"> <?php foreach ($videos as $video) { $src = 'https://www.youtube.com/embed/' . $video['id']; ?> <li class="v-single-artist__videos-list-item"> <iframe src="<?= $src ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen <?php // Complianz ?> data-category="marketing" data-service="youtube" ></iframe> </li> <?php }; ?> </ul>
Given this scenario, when the Consent Banner is accepted, the iframe is reloaded with src=”null”.
Before the Consent is given, videos can be played normally. And if consent is denied, they can be played too.
This same behaviour happens with Spotify embeds.
We thought it must be related with passing these iframe directly into the PHP template. But we added the iframes though the Classic editor, and we see no change.
We can’t find anything in the documentation. I guess we are missing something very basic.
Any leads or alternatives? We just have YouTube videos and Spotify embeds.
Thanks a lot in advance again,
The page I need help with: [log in to see the link]
- The topic ‘Accepting cookies updates videos with 404, Rejecting does nothing’ is closed to new replies.