+ 3
Which language do I need ?
Hi, I want to make a button which will mute an audio file that has the autoplay attribute. I only know html and css, do I need to learn js to achieve that ?
4 Answers
+ 4
Use muted DOM function
var video= document.createElement('video'); // video tag element
video.muted = true; // video is muted
:
video.muted = false; // video voice is on
+ 2
Thanks for your help guys.
+ 1
Here an example ..
https://code.sololearn.com/Wfo45y5E1A5w/?ref=app