Custom vars

  抱歉,这篇文章有英文版

You can transfer your variables to the player with object vars and then pick it up via API
var player = new Playerjs({id:"player", file:"video.mp4", vars:{my1:"a",my2:"b"}});
var vars = player.api("vars");
console.log(vars.my1); // a
In the same way, you can pass your variables in playlist.

Works with version 7.59+


20.0.6
2024 © PlayerJS

登录

登录

免费注册

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

恢复密码

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