After the automatic playback of chrome66 is prohibited, is there any better way to realize the automatic playback of audio?

1. After chrome 66, only setting autoplay= "true" to the audio tag can not achieve the effect of automatic playback. Is there any good way to achieve automatic playback?
2. In my own attempt, I found that if alert prompts me to click manually after checking that auto playback is not allowed, it will play automatically instead. What is the reason for this?

var audio = document.getElementById("audio");
var audioPlay = audio.play();
audioPlay.then(function () {
    console.log("");
}).catch(function (err) {
    console.log(err);
    console.log("");
    alert("")
})
Oct.27,2021

1. (safari mobile, chrome mobile), cannot be autoplay in mobile browsers, and users must interact with the interface once before they can play,. This is due to the relevant policies of the browser. Therefore, in order to achieve automatic playback on the mobile, I will, when initializing the interface, click a Modal, to let the user click, execute audio.play, and then immediately audio.stop.. In this way, after having a human-computer interaction, you can use JS to control the playback and stop of audio.
chrome66, Google also banned autoplay, on the desktop, so you can refer to the previous mobile browsers on how to deal with autoplay
2. After playing alert, you will have an interaction, so it is natural to play


Today I encountered this requirement, so I simply wrote a hack method, which is available in actual measurement:
chrome browser

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6769c-45c3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6769c-45c3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?