nsgenbind
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
HTMLMediaElement Interface Reference

import <html.idl;

Inheritance diagram for HTMLMediaElement:
HTMLElement Element Node EventTarget EventTarget HTMLAudioElement HTMLVideoElement

Public Member Functions

void load ()
 
CanPlayTypeResult canPlayType (DOMString type)
 
void fastSeek (double time)
 
Date getStartDate ()
 
void play ()
 
void pause ()
 
TextTrack addTextTrack (TextTrackKind kind, optional DOMString label="", optional DOMString language="")
 
- Public Member Functions inherited from HTMLElement
void click ()
 
void focus ()
 
void blur ()
 
void forceSpellCheck ()
 
- Public Member Functions inherited from Element
boolean hasAttributes ()
 
DOMString getAttribute (DOMString name)
 
DOMString getAttributeNS (DOMString? namespace, DOMString localName)
 
void setAttribute (DOMString name, DOMString value)
 
void setAttributeNS (DOMString? namespace, DOMString name, DOMString value)
 
void removeAttribute (DOMString name)
 
void removeAttributeNS (DOMString? namespace, DOMString localName)
 
boolean hasAttribute (DOMString name)
 
boolean hasAttributeNS (DOMString? namespace, DOMString localName)
 
Attr getAttributeNode (DOMString name)
 
Attr getAttributeNodeNS (DOMString? namespace, DOMString localName)
 
Attr setAttributeNode (Attr attr)
 
Attr setAttributeNodeNS (Attr attr)
 
Attr removeAttributeNode (Attr attr)
 
Element closest (DOMString selectors)
 
boolean matches (DOMString selectors)
 
HTMLCollection getElementsByTagName (DOMString localName)
 
HTMLCollection getElementsByTagNameNS (DOMString? namespace, DOMString localName)
 
HTMLCollection getElementsByClassName (DOMString classNames)
 
- Public Member Functions inherited from Node
boolean hasChildNodes ()
 
void normalize ()
 
Node cloneNode (optional boolean deep=false)
 
boolean isEqualNode (Node? otherNode)
 
unsigned short compareDocumentPosition (Node other)
 
boolean contains (Node? other)
 
DOMString lookupPrefix (DOMString? namespace)
 
DOMString lookupNamespaceURI (DOMString? prefix)
 
boolean isDefaultNamespace (DOMString? namespace)
 
Node insertBefore (Node node, Node? child)
 
Node appendChild (Node node)
 
Node replaceChild (Node node, Node child)
 
Node removeChild (Node child)
 
boolean hasChildNodes ()
 
unsigned short compareDocumentPosition (Node other)
 
boolean contains (Node? other)
 
Node insertBefore (Node node, Node? child)
 
Node appendChild (Node node)
 
Node replaceChild (Node node, Node child)
 
Node removeChild (Node child)
 
void normalize ()
 
Node cloneNode (optional boolean deep=true)
 
boolean isEqualNode (Node? node)
 
DOMString lookupPrefix (DOMString? namespace)
 
DOMString lookupNamespaceURI (DOMString? prefix)
 
boolean isDefaultNamespace (DOMString? namespace)
 
- Public Member Functions inherited from EventTarget
void addEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
void removeEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
boolean dispatchEvent (Event event)
 
void addEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
void removeEventListener (DOMString type, EventListener? callback, optional boolean capture=false)
 
boolean dispatchEvent (Event event)
 

Public Attributes

readonly attribute MediaError error
 
attribute DOMString src
 
attribute MediaProvider srcObject
 
readonly attribute DOMString currentSrc
 
attribute DOMString crossOrigin
 
const unsigned short NETWORK_EMPTY = 0
 
const unsigned short NETWORK_IDLE = 1
 
const unsigned short NETWORK_LOADING = 2
 
const unsigned short NETWORK_NO_SOURCE = 3
 
readonly attribute unsigned short networkState
 
attribute DOMString preload
 
readonly attribute TimeRanges buffered
 
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 double currentTime
 
readonly attribute unrestricted double duration
 
readonly attribute boolean paused
 
attribute double defaultPlaybackRate
 
attribute double playbackRate
 
readonly attribute TimeRanges played
 
readonly attribute TimeRanges seekable
 
readonly attribute boolean ended
 
attribute boolean autoplay
 
attribute boolean loop
 
attribute DOMString mediaGroup
 
attribute MediaController controller
 
attribute boolean controls
 
attribute double volume
 
attribute boolean muted
 
attribute boolean defaultMuted
 
readonly attribute AudioTrackList audioTracks
 
readonly attribute VideoTrackList videoTracks
 
readonly attribute TextTrackList textTracks
 
- Public Attributes inherited from HTMLElement
attribute DOMString title
 
attribute DOMString lang
 
attribute boolean translate
 
attribute DOMString dir
 
readonly attribute DOMStringMap dataset
 
attribute boolean itemScope
 
readonly attribute DOMSettableTokenList itemType
 
attribute DOMString itemId
 
readonly attribute DOMSettableTokenList itemRef
 
readonly attribute DOMSettableTokenList itemProp
 
readonly attribute HTMLPropertiesCollection properties
 
attribute any itemValue
 
attribute boolean hidden
 
attribute long tabIndex
 
attribute DOMString accessKey
 
readonly attribute DOMString accessKeyLabel
 
attribute boolean draggable
 
readonly attribute DOMSettableTokenList dropzone
 
attribute HTMLMenuElement contextMenu
 
attribute boolean spellcheck
 
readonly attribute DOMString commandType
 
readonly attribute DOMString commandLabel
 
readonly attribute DOMString commandIcon
 
readonly attribute boolean commandHidden
 
readonly attribute boolean commandDisabled
 
readonly attribute boolean commandChecked
 
- Public Attributes inherited from Element
readonly attribute DOMString namespaceURI
 
readonly attribute DOMString prefix
 
readonly attribute DOMString localName
 
readonly attribute DOMString tagName
 
attribute DOMString id
 
attribute DOMString className
 
readonly attribute DOMTokenList classList
 
readonly attribute NamedNodeMap attributes
 
- Public Attributes inherited from Node
const unsigned short ELEMENT_NODE = 1
 
const unsigned short ATTRIBUTE_NODE = 2
 
const unsigned short TEXT_NODE = 3
 
const unsigned short CDATA_SECTION_NODE = 4
 
const unsigned short ENTITY_REFERENCE_NODE = 5
 
const unsigned short ENTITY_NODE = 6
 
const unsigned short PROCESSING_INSTRUCTION_NODE = 7
 
const unsigned short COMMENT_NODE = 8
 
const unsigned short DOCUMENT_NODE = 9
 
const unsigned short DOCUMENT_TYPE_NODE = 10
 
const unsigned short DOCUMENT_FRAGMENT_NODE = 11
 
const unsigned short NOTATION_NODE = 12
 
readonly attribute unsigned short nodeType
 
readonly attribute DOMString nodeName
 
readonly attribute DOMString baseURI
 
readonly attribute Document ownerDocument
 
readonly attribute Node parentNode
 
readonly attribute Element parentElement
 
readonly attribute NodeList childNodes
 
readonly attribute Node firstChild
 
readonly attribute Node lastChild
 
readonly attribute Node previousSibling
 
readonly attribute Node nextSibling
 
attribute DOMString nodeValue
 
attribute DOMString textContent
 
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02
 
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04
 
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08
 
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Detailed Description

Definition at line 423 of file html.idl.

Member Function Documentation

◆ addTextTrack()

TextTrack HTMLMediaElement::addTextTrack ( TextTrackKind  kind,
optional DOMString  label = "",
optional DOMString  language = "" 
)

◆ canPlayType()

CanPlayTypeResult HTMLMediaElement::canPlayType ( DOMString  type)

◆ fastSeek()

void HTMLMediaElement::fastSeek ( double  time)

◆ getStartDate()

Date HTMLMediaElement::getStartDate ( )

◆ load()

void HTMLMediaElement::load ( )

◆ pause()

void HTMLMediaElement::pause ( )

◆ play()

void HTMLMediaElement::play ( )

Member Data Documentation

◆ audioTracks

readonly attribute AudioTrackList HTMLMediaElement::audioTracks

Definition at line 479 of file html.idl.

◆ autoplay

attribute boolean HTMLMediaElement::autoplay

Definition at line 463 of file html.idl.

◆ buffered

readonly attribute TimeRanges HTMLMediaElement::buffered

Definition at line 439 of file html.idl.

◆ controller

attribute MediaController HTMLMediaElement::controller

Definition at line 470 of file html.idl.

◆ controls

attribute boolean HTMLMediaElement::controls

Definition at line 473 of file html.idl.

◆ crossOrigin

attribute DOMString HTMLMediaElement::crossOrigin

Definition at line 432 of file html.idl.

◆ currentSrc

readonly attribute DOMString HTMLMediaElement::currentSrc

Definition at line 431 of file html.idl.

◆ currentTime

attribute double HTMLMediaElement::currentTime

Definition at line 453 of file html.idl.

◆ defaultMuted

attribute boolean HTMLMediaElement::defaultMuted

Definition at line 476 of file html.idl.

◆ defaultPlaybackRate

attribute double HTMLMediaElement::defaultPlaybackRate

Definition at line 458 of file html.idl.

◆ duration

readonly attribute unrestricted double HTMLMediaElement::duration

Definition at line 455 of file html.idl.

◆ ended

readonly attribute boolean HTMLMediaElement::ended

Definition at line 462 of file html.idl.

◆ error

readonly attribute MediaError HTMLMediaElement::error

Definition at line 426 of file html.idl.

◆ HAVE_CURRENT_DATA

const unsigned short HTMLMediaElement::HAVE_CURRENT_DATA = 2

Definition at line 446 of file html.idl.

◆ HAVE_ENOUGH_DATA

const unsigned short HTMLMediaElement::HAVE_ENOUGH_DATA = 4

Definition at line 448 of file html.idl.

◆ HAVE_FUTURE_DATA

const unsigned short HTMLMediaElement::HAVE_FUTURE_DATA = 3

Definition at line 447 of file html.idl.

◆ HAVE_METADATA

const unsigned short HTMLMediaElement::HAVE_METADATA = 1

Definition at line 445 of file html.idl.

◆ HAVE_NOTHING

const unsigned short HTMLMediaElement::HAVE_NOTHING = 0

Definition at line 444 of file html.idl.

◆ loop

attribute boolean HTMLMediaElement::loop

Definition at line 464 of file html.idl.

◆ mediaGroup

attribute DOMString HTMLMediaElement::mediaGroup

Definition at line 469 of file html.idl.

◆ muted

attribute boolean HTMLMediaElement::muted

Definition at line 475 of file html.idl.

◆ NETWORK_EMPTY

const unsigned short HTMLMediaElement::NETWORK_EMPTY = 0

Definition at line 433 of file html.idl.

◆ NETWORK_IDLE

const unsigned short HTMLMediaElement::NETWORK_IDLE = 1

Definition at line 434 of file html.idl.

◆ NETWORK_LOADING

const unsigned short HTMLMediaElement::NETWORK_LOADING = 2

Definition at line 435 of file html.idl.

◆ NETWORK_NO_SOURCE

const unsigned short HTMLMediaElement::NETWORK_NO_SOURCE = 3

Definition at line 436 of file html.idl.

◆ networkState

readonly attribute unsigned short HTMLMediaElement::networkState

Definition at line 437 of file html.idl.

◆ paused

readonly attribute boolean HTMLMediaElement::paused

Definition at line 457 of file html.idl.

◆ playbackRate

attribute double HTMLMediaElement::playbackRate

Definition at line 459 of file html.idl.

◆ played

readonly attribute TimeRanges HTMLMediaElement::played

Definition at line 460 of file html.idl.

◆ preload

attribute DOMString HTMLMediaElement::preload

Definition at line 438 of file html.idl.

◆ readyState

readonly attribute unsigned short HTMLMediaElement::readyState

Definition at line 449 of file html.idl.

◆ seekable

readonly attribute TimeRanges HTMLMediaElement::seekable

Definition at line 461 of file html.idl.

◆ seeking

readonly attribute boolean HTMLMediaElement::seeking

Definition at line 450 of file html.idl.

◆ src

attribute DOMString HTMLMediaElement::src

Definition at line 429 of file html.idl.

◆ srcObject

attribute MediaProvider HTMLMediaElement::srcObject

Definition at line 430 of file html.idl.

◆ textTracks

readonly attribute TextTrackList HTMLMediaElement::textTracks

Definition at line 481 of file html.idl.

◆ videoTracks

readonly attribute VideoTrackList HTMLMediaElement::videoTracks

Definition at line 480 of file html.idl.

◆ volume

attribute double HTMLMediaElement::volume

Definition at line 474 of file html.idl.


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