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+


19.9.22024 © PlayerJS

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Restore
Forgot email? Contact us