In an InApp context, you control the Deezer website player.
It will be loaded before your application is displayed.
All player methods will be available when the SDK is loaded.
To be sure you can interact with it, you have to put your code inside the DZ.ready method.
Because we want to remain compatible with SDKs used outside of Deezer,
you can also use the 'onload' option from the DZ.init method.
The two following examples work the same:
DZ.init({ player: { onload: function(player_onload_arg) { // DO STUFF } } });
DZ.ready(function(ready_arg) { // DO STUFF });
The only difference between the two methods is that onload receives the player
node as an argument,
and ready receives an object with player
inside of it.
ready_arg.player == player_onload_arg // TRUE