HTML Audio/Video DOM load() Method
Example
function myFunction() {
document.getElementById("mp4src").src = "video.mp4";
document.getElementById("oggsrc").src = "video.webm";
document.getElementById("myVideo").load();
}
Meaning
The load() method re-loads the audio/video element and this method is used to update the audio/video element after changing the source or other settings.
Standard Syntax
audio|video.load()
Advertisement