Variables dans les liens publicitaires

  Désolé, cet article est disponible en anglais

In tag links you can use placeholders that should be replaced at the request stage for certain data. These placeholders must be enclosed in parentheses.

(random) — random number for disabling cache

(referer) — page address where the player is running

(host) — domain where the player is running

(width) — player width

(height) — player height

(duration) — duration of the current content

(visibility) — visibility of the player

(connection) — type of Internet connection

(platform) — type of platform (web-html5, mobile or smarttv)

(adblock) — enable or disable AdBlock

(volume) — ad volume during playback

(muted) — player sound is muted

(quality) —video quality if known (from v.16.4)

(bitrate) — video bitrate HLS / DASH if known (from v.16.4)

(videowidh) — video width if known (from v.16.4)

(videoheight) — video height if known (from v.16.4)

(userid) — user id (from v.16.6)

Sample

//site.com/vast.xml?rand=(random)&width=(width)&height=(height)

Custom vars

You can specify your custom variables using the vast_replace parameter

vast_replace:{"[var1]":"1","[var2]:"2"}
//site.com/vast.xml?v1=[var1]&v2=[var2] --> //site.com/vast.xml?v1=1&v2=2

This data can be updated on the fly via JS API

player.api("update:vast_replace",{"[var1]":"3","[var2]":"4"});

20.0.0
2024 © PlayerJS

S'inscrire gratuitement

S'inscrire
En vous inscrivant, vous acceptez les Termes de service
Login si vous avez un compte.

Restaurer le mot de passe

Restaurer
Vous avez oublié votre adresse électronique ? Contactez-nous