The example
The code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ambilight Player 2 Example : Getting Started</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/default.css">
</head>
<body>
<!-- Container for the Ambilightplayer -->
<div id="ambilightplayer"></div>
<!-- Including the script -->
<script src="http://acc.ambilightplayer.philips.com/content/js/distr/ambilight.api.2.0.0.js"></script>
<!-- Initiate the Ambilightplayer -->
<script type="text/javascript">
window.onload = function(){
var al_player = new AmbilightPlayer({
id: 'ambilightplayer',
domain: 'http://acc.ambilightplayer.philips.com',
width: '100%',
height: '100%'
});
}
</script>
</body>
</html>