hello
i need help with this
<p><embed width=“128” height=“128” src=“http//:www. etc”></p>
its a plug in using front page, it will be a link to some race car sounds i want on my web site BUT i only want it to play once per visitor?
can you help?
pete
Have you tried the html5 audio tag with autoplay?
not sure what that is can someone just give me the html i need
thanks
Hi there,
Could you provide the full embed code?
Try this:
<audio src="http://www.angelfire.com/ga2/petergiles/images/aston.mp3" autoplay>
Your browser does not support the <code>audio</code> element.
</audio>
PaulOB
August 8, 2013, 11:42am
7
Doesn’t that play just once anyway by default?
Or did you mean you want to remember the visitor and then not play the sound again when they re-visit? (Would need cookies and a script).
It does, but with player controls, which I had understood that the OP didn’t want.
It is also worth pointing out that not all browsers can play mp3 files (for example FireFox and Opera)
PaulOB
August 8, 2013, 12:09pm
9
Ah ok
It is also worth pointing out that not all browsers can play mp3 files (for example FireFox and Opera)
I know nothing about audio files but I notice that both the above methods play in Firefox but only the audio tag version doesn’t play in Opera.
Ah sorry, I meant the FF 3.5 branch.
FF otherwise supports the mp3 format as of v21 (but on Windows only).
I just double checked, it seems I was wrong about Opera:
HTML5 Audio is a subject of the HTML5 specification, incorporating audio input, playback, and synthesis, as well as , in the browser. iOS
The <audio> element represents a sound, or an audio stream. It is commonly used to play back a single audio file within a web page, showing a GUI widget with play/pause/volume controls.
The <audio> element has these attributes:
Example:
what i want is for the sound to play when a visitor comes to the page, but as i have several pages on my site i do not want it to play again if they go back to the same page, after they go and if they come back it can play again