• Resolved Matthias Baier

    (@ma_wordpressorg)


    I’m having trouble getting vimeo to properly integrate into my project.
    Video-preview from a Vimeo-Video is loaded, even if I set it to just display a placeholder. The only way, I can make it show a placeholder-image is by not using a Vimeo-Block but an HTML-block and put Vimeo’s iframe-code inside it.
    To prevent additional layout problems the HTML-block needs to be inside another Group-Block. Otherwise the whole article becomes a flex-container and breaks.

    Also complianzes cookie scanner does not find Vimeo’s __cf_bm-Cookie, which gets loaded by the normal vimeo-block.
    So I added this cookie manually and just live with the no placeholder-issue.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @ma_wordpressorg,

    In case the ‘default’ WordPress Vimeo embed is used, the parameter ?dnt=1 will automatically be added to the video URL, resulting in a privacy-friendly version of the Vimeo embed (which isn’t blocked prior to consent).

    As for the described layout shift when using the iFrame embed, wrapping the iFrame in a pair of <div></div> tags (or adding the block in a group block as you described) should solve this.

    The __cf_bm cookie is actually a CloudFlare cookie (https://cookiedatabase.org/cookie/cloudflare/__cf_bm/), but in this instance placed as a result of using the Vimeo service. Manually adding it to the Cookie Policy should suffice for now, I will put this up for further discussion within our team.

    Kind regards,
    Jarno

    Thread Starter Matthias Baier

    (@ma_wordpressorg)

    Thank your for your quick response.
    I tried to remove the ?dnt=1 part of vimeos frame, but the code snippet that can be found here in the forum doesn’t work anymore.
    Basic problem is that I presume that even the “privacy friendly” version of vimeo still loads vimeos external resources, which could be interpreted as a violation of GDPR: The user wants to load this resource and not that over there as well.
    Anyways: the placeholder just doesn’t work as it should in my opinion.

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @ma_wordpressorg,

    Please use:

    function cmplz_remove_vimeo_whitelist() {
    	remove_filter( 'cmplz_whitelisted_script_tags',     
             'cmplz_vimeo_whitelist' );
        }
    add_action('init', 'cmplz_remove_vimeo_whitelist');

    This should work!

    regards Aert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Vimeo – no placeholder’ is closed to new replies.