To disable YouTube annotations for a native player you'll need to add the following line to the playerVars objects:

iv_load_policy: 3

Below is an example of the embed code with the change applied (highlighted in bold):

<script type="text/javascript" src="//d2qrdklrsxowl2.cloudfront.net/js/hapyak.js"></script>
<div style="width:640px;overflow:hidden;height:360px;position:relative;">
  <div id="hapyak-player-7665-1059"></div>
</div>
<script>
window.onYouTubeIframeAPIReady = function() {
  var ytPlayer = new YT.Player("hapyak-player-7665-1059", {
      height: "360",
      width: "640",
      videoId: "Xb5wD_0i4Pk",
      playerVars: {
          controls: /(iPhone|iPad)/i.test(navigator.userAgent) ? 0 : 2,
          html: 1,
          playsinline: 1,
          iv_load_policy: 3,
          autohide: 1,
          modestbranding: 1,
          rel: 0,
          fs: 0,
          showinfo: 0,
          wmode: "opaque"
      }
  });
  hapyak.viewer({
      apiKey: "80049382c5be49ef9147",
      projectId: 27876,
      resetVariables: true,
      player: ytPlayer,
      playerType: "youtube",
      width: 640,
      height: 360,
      autoplay: false
  });
};
</script>
<script src="//www.youtube.com/iframe_api"></script>

Please Note: this is a Proof of Concept only provided to show the possibilities of the HapYak Platform and should not be taken as an offer to create, edit or maintain custom integration or development.

Did this answer your question?