title: Autoplay Sound in Chrome / Safari on hover 2018 2019?
body: <p>I am wondering whether there is any way to overcome the new autoplay policy by google. </p>
  
  <p>I want to play a short sound snippet when a link is hovered, which unfortunately just works in firefox and not in chrome and safari anymore. 
  Is there any way to find a work around for that problem? </p>
  
  <p>Probably not I guess, just thought to address this question to more educated people in that field. Maybe someone has an idea. :)</p>
  
  <p>Thats the Code wich works in firefox and used to work in chrome and safari as well - but not anymore.</p>
  
  <p>html</p>
  
  <pre><code>&lt;span class="hit hitme"&gt;Just hit me up!&lt;/span&gt;
  
  &lt;audio id="HitMe"&gt;
      &lt;source src="sound/hitmeup.mp3"&gt;
  &lt;/audio&gt; 
  </code></pre>
  
  <p>jquery</p>
  
  <pre><code>var audio = $("#HitMe")[0];
  $(".hitme").mouseenter(function() {
    audio.play()
  $(".hitme").mouseleave(function() {
    audio.pause();
  }); 
  });   
  </code></pre>