Sample

Interactivity on top of YouTube

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

<div id="youtube-container" style="width:450px;height:264px"></div>
<script type="text/javascript" src="//dj5ag5n6bpdxo.cloudfront.net/libs/interactive/loader.js"></script>
<script type="text/javascript">
    var experience = new adways.interactive.Experience();
    experience.setPublicationID("mpNHyTH");
    experience.setPlayerClass("youtube");
    window.onYouTubeIframeAPIReady = function() {
        new YT.Player("youtube-container", {
            height: '100%',
            width: '100%',
            videoId: "uLYhmuyTthg",
            playerVars: {wmode:"transparent"},
            events: {
                'onReady': function(event) {
                    experience.setPlayerAPI(event.target);
                    experience.load();
                }
            }
        });
    };
</script>