Sample #9
Interactivity on top of YouTube live stream
Adways builds the interactivity on top of a live 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%', playerVars: {wmode:"transparent", autoplay:"true", listType:'playlist', list: 'PLIFqWCuxNyoj_2SF4ywTBikLYHiAMiLic'}, events: { 'onReady': function(event) { experience.setPlayerAPI(event.target); experience.setSceneTimeReference(true); experience.load(); } } }); }; </script>