autoplay is not working in in audio tag html 1

autoplay is not working in in audio tag html

Just muted your video. Than add autoplay, Then it is going to work! 🙂

Here is what the above code is Doing:
1. We are creating a new variable called “video” and we are setting it equal to the HTML5 video element.
2. We are setting the “src” attribute of the video element to the YouTube video URL.
3. We are setting the “autoplay” attribute of the video element to “true”.
4. We are setting the “muted” attribute of the video element to “true”.
5. We are setting the “loop” attribute of the video element to “true”.
6. We are setting the “controls” attribute of the video element to “false”.
7. We are appending the video element to the body of the HTML document.

Similar Posts