attributes

HTML5 Video – Attributes and Events

Wednesday, January 11th, 2012 | Business | No Comments

When working with the new HTML5 video tag, the official documentation is very confusing.  We just want a list of attributes and events!

I ran across an excellent resource, HTML 5 Video – DOM Attributes and Events at chipwreck.

From the post (this is incomplete, please go to the source for a full list):

Display attributes

src(string): The source file

poster(URL): An image to display before the video is playing

controls(boolean): Are the playback-controls being provided by the browser?

videoWidth, videoHeight(integer): The original video size

Playback attributes

currentTime(float): The current playback time in seconds

startTime*(float): The video start time (if the video does not start at 0.0 – streams for example)

duration(float): The duration in seconds

paused(boolean): Is the video currently paused?

ended(boolean): Has the video ended?

autoplay(boolean): Is is set to autoplay?

loop(boolean): Is is set to play in a loop?

They list everything beyond that .. thanks guys!

Tags: , , , ,


Please share, it makes me happy:

Subscribe to Email Alerts

Follow Me

Follow seangw on twitter

Archives

Categories

prestashop theme

virtuemart template