//use this only after the player is ready, either on callback function or like this. player.ready(function () { });