Custom vars

  Désolé, cette page est en attente de traduction en français

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+


19.12.2
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