Audio tags can not be used in mobile browsers. Play (), can only click the play button by hand. Is there no way to solve this?

guys, I finally know why it"s so painful to develop on mobile. / (thanks to) / ~,

Today, I encountered a problem. In vue"s project, when debugging a mobile browser, there is an audio tag. In any case, the song can only be played by clicking the play button by hand. no, no, no.

all kinds of Baidu, it is said that Android and Apple systems are set by default and cannot be changed. Is this really the case? Baidu has a lot of methods.

clipboard.png

this method has also been tried. No, can we only click the play button manually, / (playo buttons) / < del > / (playo buttons) / < / del > / (playo buttons) / ~

do you know how to solve the problem? please give me some advice! (I am ready to give up, =)


you don't seem to have preloaded this (see the code is to write the page directly? ). It's not going to happen without preloading. The browser won't allow you to put such a big thing all of a sudden.

generally speaking, the idea of H5 products is to put this trigger on the preloaded end prompt, so that it will not be too abrupt and is more in line with the habits of users.

Menu