Brainsonic sample

Interactivity on top of Brainsonic

Adways builds the interactivity on top of a Brainsonic player already existing

<div class="bs-player"
     style="width:512px; height:288px;"
     data-bs-publisherid="7227237b98f77856057a9896cbe2ce49"
     data-bs-playerparamsurl="https://damlb-cmd16-services-pad.brainsonic.com/smartplayerconfig-bbedaf294d1cd43f3d96.html"
     data-bs-playerguid="v55d4a4a4a6513"
     data-bs-flashWmode="transparent"
     data-bs-primary="html5"
     data-bs-callback="playerInitialised">
</div>
<script type="text/javascript">
    var experience = new adways.interactive.Experience();
    experience.setDelegateBuilderURL("//dj5ag5n6bpdxo.cloudfront.net/libs/delegateBuilders/brainsonic.js");
    experience.setDelegateBuilderClassname("adways.playerHelpers.BrainsonicDelegateBuilder");
    experience.setPublicationID("mpNHyTH");
    // callback player function
    function playerInitialised(status, player) {
        if (status.type == bsPlayerTypes.NONE) {
            return;
        }
        experience.setPlayerAPI(player);
        experience.load();
    }

    (function(window) {
        var document = window.document;
        var js = document.createElement('script');
        js.type = 'text/javascript';
        js.async = true;
        js.src = 'https://playermanager-pad.brainsonic.com/configuration/v55d4a4a4a6513/launcher/config.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(js, s);
    })(window);
</script>