HTML5 Player Framework Preview: API Documentation

Player Functions

ready(callback)
Adds an event listner for the "ready" event of the Player object for convenience.

HTMLMediaElement Properties

These naming of these functions match the naming of the properties of the HTMLMediaElement. Functions are used instead of properties because not all browsers support getters and setters in JavaScript.
currentTime(value)
Gets or sets the current playback position of the media element expressed in seconds.
duration()
Gets the length of the media loaded in the media element expressed in seconds.
muted(value)
Gets or sets a boolean value indicating whether the media element is muted.
paused()
Gets a boolean value indicating whether the media element is paused.
poster()
Gets the URL of the poster image to display before initiating playback.
volume(value)
Gets or sets the volume level in a range of 0.0 to 1.0.

HTMLMediaElement Functions

These naming of these functions match the naming of the functions of the HTMLMediaElement.
play: function()
Plays the media.
pause: function()
Pauses the media.


For documentation on the Silverlight Player Framework, see the Silverlight API Documentation.

Last edited Jul 6, 2011 at 12:48 AM by jcostello, version 3

Comments

No comments yet.