Video.js provides the HTML5 player interface; the Google Interactive Media Ads (IMA) SDK handles VAST ad playback when correctly integrated. A bare Video.js player does not automatically know how to play VAST XML.
Integration approach
- Confirm that your site uses Video.js and has a supported IMA/ads plugin installed.
- Find its ad tag URL configuration option.
- Paste an individual MEDIARAZZI VAST URL or a pod tag only if the integration supports Ad Pods.
- Initialize advertising on the required user gesture, especially on mobile.
- Confirm the content resumes after the ad.
- Inspect Google IMA callbacks, errors and the MEDIARAZZI event report.
Developer illustration
// Illustrative only: requires Video.js, contrib-ads and a compatible IMA plugin.
const player = videojs('video-player');
player.ima({ adTagUrl: 'https://ads.mediarazzi.com/vast/YOUR_PUBLIC_KEY' });
// Initialize/ad-request according to your plugin version and user-gesture rules.
IMA ad-manager initialization, content-playback coordination, autoplay and volume must match the specific integration's version. Do not copy code blindly into every WP-Script theme.
References: Google HTML5 guidelines, IMA HTML5 SDK, Google Video Suite Inspector.