Player Init Deferred

TOP can be created without being initialized. Manually initialization of the player can be done at a later time.

Create

Instead of using the preferred method of player creation createAndInitPlayer, use createPlayer:

var player = TOP.createPlayer();

Deferred

Now the player is created but hasn't initialized yet. This would be the time to set up any event listeners.

Initialize

Initialize the player using the init method:

player.init();