This page explains step by step how to embed the Ambilighplayer on your own website.


In its simplest form, this is how embedding the Amblightplayer works:

The script will write an iframe in the placeholder which holds the Ambilightplayer markup and code. All the assets are loaded from the domain.

You can download our example files as a reference. (note: the files need to run on a webserver in order to work)

Add a placeholder in your HTML file

Add a placeholder in your HTML file. You will need the ID of the placeholder later when you add the javascript.

<div id="ambilightplayer"></div>

Include the Ambilightplayer script

Add a script-tag to your page that refers to the javascript file on the domain.

<script src=""></script>

Initiate the creation

Add the following code to your HTML.

<script type="text/javascript">
    window.onload = function(){
        var al_player = new AmbilightPlayer({
            id: 'ambilightplayer',
            domain: '',
            width: '100%',
            height: '100%'

You're done

You can customise the Ambilightplayer using the options in the final step. More info about the options can be found on the documentation page.