广告链接中的变量

  抱歉,此页面正在等待翻译成土耳其语

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

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们