Auto mode: Loads Google IMA SDK automatically. Falls back to Vodlix VAST if IMA is unavailable.
The ad tag is sourced from
playable-frozen.json → data[0].ad.ad_tag.
Ads Events
Play video to see ad events…
Configuration
Engine options:
Type 1 — VAST URL (adType: 1): Pass a VAST/VMAP URL as
Type 2 — Direct video URL (adType: 2): Pass an MP4 URL as
ima | vodlix | auto
Type 1 — VAST URL (adType: 1): Pass a VAST/VMAP URL as
adTag.Type 2 — Direct video URL (adType: 2): Pass an MP4 URL as
adTag.
The player wraps it in a VAST XML envelope automatically.
VodlixPlayer('container', {
ads: {
engine: 'auto',
adTag: 'https://example.com/vast.xml',
adType: 1,
skipTime: 5,
preroll: true,
}
});