HTML 5 Audio/Video DOM addTextTrack() method

Example

Change the video source and reload the video:

document.getElementById("mp4_src").src="movie.mp4";
document.getElementById("ogg_src").src="movie.ogg";
document.getElementById("video1").load();;

Try It Yourself

Definition and Usage

The load() method reloads the audio/video elements.

The load() method is used to update audio/video elements after changing sources or other settings.

Browser Support

All major browsers support the load() method except Safari.

Note:Internet Explorer 8 and earlier versions do not support this method.

Syntax

audio|video.load()