Variables en los enlaces publicitarios

  Lo sentimos, esta página está pendiente de traducción al español

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"});

19.10.26
2024 © PlayerJS

Inicio de sesión

Conectarse

Regístrate gratis

Inscríbete
Al registrarte, aceptas Condiciones del servicio
Iniciar sesión si tienes una cuenta.

Restaurar contraseña

Restaurar
¿Ha olvidado su correo electrónico? Contacte con nosotros