Test of audio autoplay

"View source" to see.
  

background audio - autoplay

<audio autoplay> (no controls, nothing on screen)

(Commented out.)



background audio - autoplay - using Data URI

Audio file included inline as Data URI.
No network call.

File is air.horn.mp3
Converted to Data URI here.

Result: Works on desktop. Still does not work on mobile.

(Have removed this Data URI because it is generating hits on searches on this site.)



user-operated audio - full controls

<audio controls > (visible controls on screen)



user-operated audio - button



background audio - JS

On page load, JS calls audio play() (what the button calls above).

Does not work. The same policy that disables audio autoplay also disables JS script play(). Only a user action can trigger JS script play().

(Not implemented on this page.)