No autostart sound on HTML5

i make baground sound on the scene. But it run only if i click on canvas ((

how to fix?

in console

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page

Chromium 117.0.5882.0

function init(self)
	sound.play(msg.url(nil, 'sound', 'background'))
end

It is part of the standard, that sounds don’t autostart on web pages before the user interacts with the page.

3 Likes

Thank for answer