HTML5 Game - Audio HTMLMediaElement

HTMLMediaElement, HTMLAudioElement and HTMLVideoElement

The HTMLMediaElement is the parent class for the audio and video elements and defines the core functionality for both of them in the DOM.

The audio element is represented in the DOM by the HTMLAudioElement object.

It defines no additional functionality beyond HTMLMediaElement.

The video element is represented by the HTMLVideoElement object.

It has some additional properties.

You can use the audio element to play video files with only soundtrack.

You can use the video element to play audio files and the video display remains blank.

Related Topics