Deezer InApp - Methods

DZ.onReady

The method DZ.ready accepts a function as parameter, which will be executed after the SDK is initialized
All code that interacts with the Deezer Javascript SDK should be placed inside a DZ.ready function (unless you are absolutely sure the SDK is loaded and ready)

DZ.ready(function(sdk_options){
	console.log('DZ sdk is ready', sdk_options);
	/*
	{
		token: {
			access_token: {string},
			expire: {int}
		},
		player: {
			current_track: {track Object described in the api},
			muted: {boolean}
			repeat: {'0', '1', '2'},
			shuffle: {boolean},
			volume: {int [0-100]},
		}
	}
	*/
});
			

Warning! The 'sdk_options' parameter described above is not dynamic.
This means that the value of 'shuffle', 'volume' or whatever else in this object is not updated.
They keep the value they had when loading the SDK!