|
/ Docs /Integrations/ How to Make Presto Player Videos Wait for Cookie Consent with SureCookie

How to Make Presto Player Videos Wait for Cookie Consent with SureCookie

Presto Player videos from YouTube and Vimeo can connect to the video provider as soon as a page loads, even before a visitor presses Play. With SureCookie active, supported Presto Player videos wait behind a placeholder until the visitor allows the relevant cookie category. The player then loads in the same spot, with no code to add and nothing to connect.

Applies to: SureCookie 1.9.0 and above (free), with Presto Player (free or Pro).

Before You Begin

  • SureCookie 1.9.0 or later is installed and active.
  • Presto Player (free or Pro) is installed and active.
  • You have a page with a Presto Player video, or you are ready to add one.

What Happens to Each Video

What the visitor sees depends on where the video comes from.

Presto Player sourceBefore consentLoads after the visitor allows
YouTubePlaceholderMarketing
VimeoPlaceholderMarketing
Bunny.netCan play before consent under SureCookie’s default settings. It still loads from Bunny’s CDN.Nothing needed
Video file hosted on your sitePlays normally. No third party is involved.Nothing needed
Video file hosted on another sitePlaceholderFunctional
AudioPlaceholderFunctional
Media Hub videoSame as the video’s own source aboveSame as that source

Note: Presto Player playlists and popups are also held behind a placeholder, but test them before you rely on them. On SureCookie 1.9.0, a playlist can be placed in Marketing even when it has no YouTube or Vimeo items.

These categories are SureCookie’s defaults. You can change the category for a service, as shown under Where to Find the Settings.

How to Turn It On

There is no separate connection step. SureCookie finds Presto Player on its own, as long as two SureCookie settings are on. Both are on by default, so this is mostly a quick check.

  1. Install and activate SureCookie and Presto Player.
  2. Go to SureCookie > Settings > Banner > Content.
  3. Check that Enable Cookie Banner is on.
  4. Go to SureCookie > Tracking Manager > Scripts and Embeds.
  5. Check that Block Scripts Until Consent is on.
Enabling Block Scripts Until Consent under SureCookie settings.

  1. Add a Presto Player YouTube or Vimeo block to a page, or a Media Hub video by ID.
  2. Publish or update the page.
  3. Open the page in a private browser window.
  4. Check that the placeholder shows where the video sits.

Accept & Load banner before the consent is provided

  1. Click Accept & Load, as a visitor would.
  2. Check that the video loads, then press Play to confirm it plays.

Video loading after the consent is provided by clicking Accept & load

    Note: Accept & Load is the visitor’s choice to opt in. It allows the whole category assigned to the video, usually Marketing, so other content in that category can load too. If a custom rule puts the player script in a different category, the video may not play right after one click, so test your own setup.

    Note: Both settings cover all of SureCookie’s blocking, not only Presto Player. If either one is off, Presto videos load before consent like any other embed.

    Tip: With Geographic Rules in SureCookie Pro, Presto videos are held only for visitors in the regions where your rules require blocking.

    What You’ll See

    A typical page is a course lesson, product demo or tutorial with a Presto Player video. Visitors who have not made a choice see a placeholder where the video sits. The rest of the page works as usual, so visitors who decline can still read it.

    With both plugins active, you and your visitors get:

    • No player before consent. The YouTube or Vimeo player is not added to the page until the visitor allows its category.
    • One-click loading on the video. The Accept & Load button allows the whole category assigned to the video, usually Marketing. The video then loads without a page reload.
    • Banner choices count too. Accepting the matching category in the cookie banner loads every video on the page that was waiting for it.
    • No prompt for returning visitors. Visitors who already accepted see the player as the page loads.
    • A placeholder that fits the page. It keeps the video’s shape and shows the Presto poster image when the video has one.
    • Page caching keeps working. The page HTML is the same for every visitor, and consent is applied in the browser.

    Where to Find the Settings

    Presto Player has no settings of its own in SureCookie. These SureCookie settings decide how Presto videos are handled:

    • Block Scripts Until Consent (SureCookie > Tracking Manager > Scripts and Embeds): turns blocking on or off for all scripts and embeds, Presto videos included.
    • Category (same page): after someone visits a page with a held Presto video, the video’s service, such as YouTube, is listed here. Click Edit on its row and pick a new category. Presto videos from that service follow it.
    • Placeholder Text (SureCookie > Settings > Advanced > Blocked Content UI): the message shown on the placeholder. Use {service} to insert the service name, such as YouTube.
    • Button Text (same page): the label on the placeholder button. The default is Accept & Load.
    • Default Placeholder Image (same page): the image shown when a video has no Presto poster image.
    • Use Video Thumbnails (same page): shows the YouTube video’s own thumbnail when there is no poster. The thumbnail loads from YouTube before consent, so leave this off if the page should not contact YouTube until the visitor accepts.

    Blocked Content UI with the placeholder options in SureCookie

    Good to Know

    • Withdrawing consent: if a visitor turns the category off in the cookie preferences, the video goes back behind its placeholder the next time the page loads.
    • Opt-out sites: where the opt-out consent model applies, Accept & Load accepts all cookie categories, not only the video’s.
    • Editing: the block editor and other admin screens show the real player, so building pages works as before.
    • Scope: the integration covers Presto Player YouTube and Vimeo blocks and Media Hub videos added in the block editor. It also covers a Presto Player shortcode that uses the Media Hub video ID. Playlists and popups are also held, but test them first.
    • Testing: use a private browser window, so an earlier consent choice does not hide the placeholder.

    Known Limitation in SureCookie 1.9.0

    Presto Player can also add a video with a shortcode that sets the video URL directly, or with its page builder widgets, such as the Elementor widget. SureCookie 1.9.0 does not put the placeholder on videos added these ways:

    • YouTube and Vimeo: nothing loads from YouTube or Vimeo before consent. But visitors see an empty player with no message and no Accept & Load button until they accept cookies in the banner.
    • Video file from another site: it loads before the visitor answers the banner.

    A fix is in progress, but there is no release date yet.

    Until then: add videos as Presto Player blocks, or use a Presto Player shortcode that uses the Media Hub video ID.

    Conclusion

    With SureCookie and Presto Player active, supported YouTube and Vimeo videos wait for consent and load in place once the visitor allows the category. Bunny.net videos can play before consent under SureCookie’s default settings, and they still load from Bunny’s CDN. A video file hosted on your site plays as normal, because no third party is involved.

    If you have any questions or need further help, feel free to reach out to our support team. We’re always happy to help!

    Was this doc helpful?
    What went wrong?

    We don't respond to the article feedback, we use it to improve our support content.

    Need help? Contact Support
    Table of Contents