HomeGuidesChangelog
Log In
Guides

Video player specifications

📘

Commerce Video is in Beta

The documentation and features are likely to change, and the product might contain bugs.
Please report any issues and check back for updates.


About VAST

Created by the Interactive Advertising Bureau (IAB), VAST is a Video Ad Serving Template for structuring ad tags that serve ads to video players on the Internet. Using an XML schema, VAST transfers important metadata about an ad from the ad server to a video player.

📘

The VAST framework has been chosen by Criteo to render Commerce Video ads because VAST is a market standard. It allows interoperability with third-party measurement partners, and covers all tracking requirements.


Video player requirements

⚠️

All beacons shoud be fired only once

Except for the interaction beacons that should be fired every time the user interacts with these actions (click, mute, unmute, resume, pause). Please refer to the Tracking Ad-related Activity section for more details.

Main requirements

The VAST video player must support the following requirements:

  • Video should load at the load of the page, even if not in the viewport.

  • Video should start playing automatically only when the player is at least in 50% of the viewport.

  • Video should pause automatically when the player is in less than 50% of the viewport.

    • the "pause" beacon should not be fired in this case scenario.
  • Video should resume automatically when the player is back in more than 50% of the viewport

    • the "resume" beacon should not be fired in this case scenario.
  • Video should repeat indefinitely.

  • Video should be muted automatically at launch:

    • The mute beacon must not be fired because this mute action does not represent an interaction from the user.
    • A control button must be available to unmute it.
  • Another control button should be available to pause/resume the video.

    • The pause/resume button is optional, no matter if there is a redirection link available in the VAST XML. This is due to the fact that the video should play automatically when in the viewport and pause when not - and simply takes additional space on the video.
    • Other controls should be hidden.
  • Video cannot be viewed in full screen.

  • Video can be clickable and redirect to a page only if a redirection link is present (<VideoClicks> present in VAST XML).

  • The video player used by the client must be able to read VAST XML files (e.g., Google Interactive Media Ads player or a native HTML player with an additional JavaScript layer that can handle VAST XML files). Please visit the Video Player Implementation page for more details.


With / without redirection links

With no redirection links

📘

If there is no redirection link provided, the <VideoClicks> section will not be present. The ClickThroughURL and the associated ClickTracking beacon won't appear.

  • a click on the video should pause the video, and:
    • the Pause beacon should be fired
  • a new click on the video should resume the video:
    • the Resume beacon should be fired

With a redirection link

If there is a redirection link provided in the VAST XML:

  • a click on the video should redirect the user to the Clickthrough URL, and:
    • the Clicktracking beacon must be fired,
    • the Pause beacon must NOT be fired.

⚠️

The Pause beacon should only be used if there is a manual action from the user that wants to pause the video.

  • If a video is paused manually (after a click on the Pause button or by clicking on the video if there isn't a redirection URL), goes in less than 50% of the viewport and comes back in more than 50% of the viewport, the video should resume.
    • However, the Resume beacon should not be fired because this is not a manual action from the user.

If the user clicks on Pause/Resume

If the user clicks on pause, the Pause beacon should be fired.

  • The Clicktracking beacon must not be fired because this is a click on the pause button, not on the video itself.
  • The button should change from ⏸️ to ▶️.
  • The pause beacon should only be fired when the user clicks on the Pause button or clicks on the video if there is no redirection link provided when playing.
  • If the user clicks on Play/Resume after having paused the video, the Resume beacon should be fired.
    • The Clicktracking beacon must not be fired because this is a click on the pause button, not on the video itself.
    • The button should change from ▶️ to ⏸️.
    • The Resume beacon should only be fired when the user clicks on the Resume button or clicks on the video if there is no redirection link provided and video is paused.

Multiple video files

  • Multiple video files (MediaFiles) can be returned in the same VAST XML by Criteo, but only one of them must be rendered per VAST XML. Video files may differ in ratios. Supported video ratios are 16:9, 9:16 and 1:1.
    • If a single video is returned in the VAST XML, it must be selected by default.
    • If multiple videos are provided, the closest video ratio (compared to the ad placement's video ratio) must be selected.

Closed Caption (CC)

For accessibility requirements, a Closed Caption (CC) file can be provided in the VAST XML by Criteo.

  • If the CC file is present:
    • it must be rendered by the video player.
    • a CC control button must be available, next to other control buttons (mute/pause).
  • If there is no CC file provided in the VAST XML, the CC control button should be hidden.
  • At video launch, Closed Captioning must be enabled automatically.
  • Maximum one CC file can be provided in the VAST XML, ensuring a single language support.

📘

The only file format supported for CC is .vtt.
CC files will be automatically generated and provided in the VAST XML.