if you’re using LYTE and if you have “cache thumbnails locally” active, then the video should be GDPR compliant actually as YouTube will only get info from the user when (s)he clicks play? 🙂
And I think that’s where the problem lies. The user does not actively and explicitly consent to the storage of YouTube cookies or a data connection to YouTube. This can only be achieved by taking appropriate measures to obtain confirmation beforehand. For me (I have already adjusted your plugin), the YouTube area is blocked with the notice that you have to agree first.
So it would be great if you could put that in a <section> tag again.
Example for me:
Beginning ca. 337
} else {
$wrapper = '<section class="lyte-video-wrapper"><div class="lyte-wrapper' . $l..........
end about 364
....$yt_resp_array["description"] . '"></div></div></section>' . $lytelin....
what people usually do is use the “Text to be added under every LYTE video.” field on the LYTE settings page to warn users that clicking “play” will share their data with YT.
re. adding the section; not convinced as the fix is very specific to “Weepie Cookie Allow” (which I did not know), but you could use the LYTE API (specifically the lyte_match_postparse_template filter) to alter the LYTE output as you wish without having to change LYTE-code itself? 🙂
Ah… cool thought. Do you have an example of the lyte_match_postparse_template filter or instructions?
Thank you also for the quick response. great support
well, the principle is pretty straightforward;
add_filter( 'lyte_match_postparse_template', function( $lyteHtml ) {
$lyteHtml = str_replace( '<section class="lyte-video-wrapper"><div class="lyte-wrapper', '<div class="lyte-wrapper', $lyteHtml );
return $lyteHtml;
});
that should add the opening <section>, you would need a similar str_replace line to add the closing section? 🙂
(warning: untested code, just a quick example)