HTML5 Audio: Chrome on Android doesn't automatically play song vs Chrome on PC does

后端 未结 5 477
青春惊慌失措
青春惊慌失措 2020-12-30 05:38

I\'ve made an HTML5 iPod.

You can try it here.

http://inventikasolutions.com/demo/iPod

On a PC, while using Chrome. If I navigate to a song, it start

5条回答
  •  星月不相逢
    2020-12-30 06:13

    In case someone bumps into this - Android version of Chrome in fact blocks autoplay function, but you can change settings of the browser. To do this, you have to enter chrome://flags and set Disable gesture requirement for media playback to on. It's impossible to force this setting via web, but if you're writing a dedicated web app like I did, you can use it.

提交回复
热议问题