+ 1
Hello, Guys.
Yesterday I created a new code called «Arstotzka», I wanted to add music, but for some reason it doesn’t work, please help me fix it https://sololearn.com/compiler-playground/WfBdA8fM0e2f/?ref=app
2 odpowiedzi
+ 2
Why not do audio like is listed here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
+ 2
https://www.w3schools.com/html/html5_audio.asp
I've tried it here, copied that part of your code. it works there.
possible here autoplay is not supported. add there the controls attribute and save it :-)
if you will host somewhere, just remove the controls.
NOTE: autoplay is not really useful tool without a muted attribute. so I prefer using not to start automatically, but have controls.
thanks