title: HTML5 Audio: Chrome on Android doesn't automatically play song vs Chrome on PC does
body: <p>I've made an HTML5 iPod.</p>
  
  <p>You can try it here.</p>
  
  <p><a href="http://inventikasolutions.com/demo/iPod">http://inventikasolutions.com/demo/iPod</a></p>
  
  <p>On a PC, while using Chrome. If I navigate to a song, it starts playing automatically.
  But while using Chrome on Android it doesn't play the song. I have to hit the play/pause button again to play the audio.</p>
  
  <p>Here is the code which runs, when you select the song to play:</p>
  
  <pre><code>audioPlayer.src=songurl[number];
  audioPlayer.oncanplaythrough = "isAppLoaded";
  audioPlayer.autoplay = "autoplay";
  audioPlayer.addEventListener('ended',nextSong,false);
  document.getElementById("player").appendChild(audioPlayer);
  </code></pre>
  
  <p>and here is the play/pause code.</p>
  
  <pre><code>        if (audioPlayer.paused)
          {
          audioPlayer.play();
          $("#pauseindicator").hide();
          $("#playindicator").show();
          }
          else
          {
          audioPlayer.pause();
          $("#pauseindicator").show();
          $("#playindicator").hide();
          }
  </code></pre>
  
  <p>Could it have some thing to do with the 'autoplay' variable?
  The default browser in Android plays the song immediately. </p>
  
  <p>Thanks.</p>