Page 1 of 1
Adding .wav files to pages
Posted: Thu Jun 15, 2023 2:00 pm
by suomi48
Is it possible to add a .wav file to a project page? I would like to have a .wav file play when one of the pages in my project opens.
Re: Adding .wav files to pages
Posted: Thu Jun 15, 2023 2:03 pm
by wwonderfull
suomi48 wrote: Thu Jun 15, 2023 2:00 pm
Is it possible to add a .wav file to a project page? I would like to have a .wav file play when one of the pages in my project opens.
Yes it is possible to play a .wav file. Go to tool box or search for "HTML Audio" tool then select the .wav audio file and then go to page properties and then use an event "onload" action "media play".
Re: Adding .wav files to pages
Posted: Thu Jun 15, 2023 2:10 pm
by wwonderfull
Note: Chromium browsers do not allow autoplay in most cases. However, muted autoplay is always allowed.
The autoplay attribute is a boolean attribute.When present, the audio will automatically start playing as soon as it can do so without stopping. Although, it's worth to note is that autoplay behavior can be controlled by the browser's settings and policies. So in some cases the browsers may prevent autoplay audio or require user interaction before allowing audio playback to begin.
For more insight on this subject also read from below link.
https://www.w3schools.com/tags/att_audio_autoplay.asp
Re: Adding .wav files to pages
Posted: Thu Jun 15, 2023 5:55 pm
by crispy68
IMHO, i would not recommend having music autoplay. It is extremely irritating which is why you don't see it often.
Re: Adding .wav files to pages
Posted: Fri Jun 16, 2023 2:33 am
by wwonderfull
What you said @crispy is fair and true. People do find sudden noise from loading a website irritating. That's why even the browser try not to allow it in some cases.
Re: Adding .wav files to pages
Posted: Fri Jun 16, 2023 11:46 pm
by onlye
wwonderfull wrote: Fri Jun 16, 2023 2:33 am
What you said @crispy is fair and true. People do find sudden noise from loading a website irritating. That's why even the browser try not to allow it in some cases.
ditto - i will usually close the page if it stars auto play on audio.