Public Member Functions | Public Attributes

nsIDOMHTMLMediaElement Interface Reference

The nsIDOMHTMLMediaElement interface is an interface to be implemented by the HTML <audio> and <video> elements. More...

import "nsIDOMHTMLMediaElement.idl";

Inheritance diagram for nsIDOMHTMLMediaElement:
Collaboration diagram for nsIDOMHTMLMediaElement:

List of all members.

Public Member Functions

void load ()
DOMString canPlayType (in DOMString type)
void play ()
void pause ()
void mozLoadFrom (in nsIDOMHTMLMediaElement other)

Public Attributes

readonly attribute
nsIDOMHTMLMediaError 
error
attribute DOMString src
readonly attribute DOMString currentSrc
const unsigned short NETWORK_EMPTY = 0
const unsigned short NETWORK_IDLE = 1
const unsigned short NETWORK_LOADING = 2
const unsigned short NETWORK_LOADED = 3
const unsigned short NETWORK_NO_SOURCE = 4
readonly attribute unsigned short networkState
const unsigned short HAVE_NOTHING = 0
const unsigned short HAVE_METADATA = 1
const unsigned short HAVE_CURRENT_DATA = 2
const unsigned short HAVE_FUTURE_DATA = 3
const unsigned short HAVE_ENOUGH_DATA = 4
readonly attribute unsigned short readyState
readonly attribute boolean seeking
attribute float currentTime
readonly attribute float duration
readonly attribute boolean paused
readonly attribute boolean ended
readonly attribute boolean mozAutoplayEnabled
attribute boolean autoplay
attribute boolean autobuffer
attribute boolean controls
attribute float volume
attribute boolean muted

Detailed Description

The nsIDOMHTMLMediaElement interface is an interface to be implemented by the HTML <audio> and <video> elements.

For more information on this interface, please see http://www.whatwg.org/specs/web-apps/current-work/#htmlmediaelement

Status:
UNDER_DEVELOPMENT

Member Function Documentation

DOMString nsIDOMHTMLMediaElement::canPlayType ( in DOMString  type  ) 
void nsIDOMHTMLMediaElement::load (  ) 
void nsIDOMHTMLMediaElement::mozLoadFrom ( in nsIDOMHTMLMediaElement  other  ) 
void nsIDOMHTMLMediaElement::pause (  ) 
void nsIDOMHTMLMediaElement::play (  ) 

Member Data Documentation

readonly attribute DOMString nsIDOMHTMLMediaElement::currentSrc
readonly attribute float nsIDOMHTMLMediaElement::duration
const unsigned short nsIDOMHTMLMediaElement::HAVE_ENOUGH_DATA = 4
const unsigned short nsIDOMHTMLMediaElement::HAVE_FUTURE_DATA = 3
const unsigned short nsIDOMHTMLMediaElement::HAVE_METADATA = 1
const unsigned short nsIDOMHTMLMediaElement::HAVE_NOTHING = 0
const unsigned short nsIDOMHTMLMediaElement::NETWORK_EMPTY = 0
const unsigned short nsIDOMHTMLMediaElement::NETWORK_IDLE = 1
const unsigned short nsIDOMHTMLMediaElement::NETWORK_LOADED = 3
const unsigned short nsIDOMHTMLMediaElement::NETWORK_LOADING = 2
readonly attribute unsigned short nsIDOMHTMLMediaElement::networkState
readonly attribute unsigned short nsIDOMHTMLMediaElement::readyState
attribute DOMString nsIDOMHTMLMediaElement::src

The documentation for this interface was generated from the following file: