Sie sind nicht angemeldet.

1

Dienstag, 9. März 2021, 15:10

How to auto play mp3 after pano loading

Hi, simple question. Its possible to make auto play mp3 sound after panorama is loaded?
Now I must make one click mouse button on panorama then sound is playing.
But I need playing sound automaticly without button click.
I heard the web browsers block this. It's true?
How I can fix this problem?

PS
In krpano tools everything is ok but on www not.

txs
Slawek

<plugin url="%VIEWER%/plugins/soundinterface.js" keep="true"
onloaded="playsound(bg, 'https://martaprominska.com/room01/Nc_v3.mp3', true, 1);"
/>

2

Dienstag, 9. März 2021, 15:56

Yes, this is a browser policy that blocks automatic playback. You can make, for example, a background layer with the inscription "watch the tour" at the beginning and hide it when you click, then there will be playback

3

Dienstag, 9. März 2021, 16:01

Yes, this is a browser policy that blocks automatic playback. You can make, for example, a background layer with the inscription "watch the tour" at the beginning and hide it when you click, then there will be playback
Thanks a lot. Have a nice day.