The JavaScript API of the audio and video elements

The complete list of events can be found at the W3C specification page, and numerous examples of each event can be found on many Web sites such as this one.

example page:

https://www.w3.org/2010/05/video/mediaevents.html

HERE IS A TABLE THAT SHOWS THE MOST INTERESTING METHODS, PROPERTIES, AND EVENTS PROVIDED BY THE <VIDEO> ELEMENT API:

We provide this as a quick reminder – keep in mind that the complete list is much longer!

Methods Properties Events
play() currentSrc play
pause() currentTime pause
load() startTime (readonly) progress
canPlayType() videoWidth error
videoHeight timeupdate
duration (readonly) ended
ended (readonly) abort
error empty
paused (readonly) emptied
muted waiting
seeking loadedmetadata
volume
height
width
seekable (readonly)
played (readonly)

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s