Answers for "how to add multiple videos in html5 with javascript"

0

how to add multiple videos in html5 with javascript

document.getElementById("myVideo").setAttribute("src",videoSource[0]);
Create a function to load and play the videos.
 
    function videoPlay(videoNum)
    {
document.getElementById("myVideo").setAttribute("src",videoSource[videoNum]);
document.getElementById("myVideo").load();
document.getElementById("myVideo").play();
    }
Posted by: Guest on May-13-2020

Code answers related to "how to add multiple videos in html5 with javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language