Constructor: MediaElement

OpenAjax.a11y.cache.MediaElement

new MediaElement(dom_element)

Creates media element object representing information related to an object, video, audio, embed or applet element on a web page

Parameters:
Name Type Description
dom_element DOMelement The dom element object representing the media element
Properties:
Name Type Description
dom_element DOMElement Reference to the dom element representing the media element
cache_id String String that uniquely identifies the media element object in the cache
document_order Number Ordinal position of the media element in the document in relationship to other media elements
is_video Number Constant indicating the probability of the media element including video
is_audio Number Constant indicating the probability of the media element including audio
has_caption Number Constant indicating the probability of the media element having a caption
has_text_alternative Number Constant indicating the probability of the media element having a text description
has_audio_description Number Constant indicating the probability of the media element having an audio description
Source:
  • scripts/cache_media.js, line 355

Methods

<static> addMediaElement(media_element)

Adds a cache media element to the tree representation of media elements

Parameters:
Name Type Description
media_element MediaElement Cache media element object to add
Source:
  • scripts/cache_media.js, line 420

<static> getAttributes(unsorted) → {Array}

Returns an array of attributes for the element, sorted in alphabetical order

Parameters:
Name Type Description
unsorted Boolean If defined and true the results will NOT be sorted alphabetically
Source:
  • scripts/cache_media.js, line 471
Returns:
Returns a array of attribute display object
Type
Array

<static> getCacheProperties(unsorted) → {Array}

Returns an array of cache properties sorted by property name

Parameters:
Name Type Description
unsorted Boolean If defined and true the results will NOT be sorted alphabetically
Source:
  • scripts/cache_media.js, line 502
Returns:
Returns a array of cache property display object
Type
Array

<static> getCachePropertyValue(property) → {String|Number}

Returns the value of a property

Parameters:
Name Type Description
property String The property to retreive the value
Source:
  • scripts/cache_media.js, line 533
Returns:
Returns the value of the property
Type
String | Number

<static> getEvents() → {Array}

Returns an array of events for the element, sorted in alphabetical order

Source:
  • scripts/cache_media.js, line 555
Returns:
Returns a array of event item display objects
Type
Array

<static> getNodeResults() → {Array}

Returns an array of node results in severity order

Source:
  • scripts/cache_media.js, line 441
Returns:
Returns a array of node results
Type
Array

<static> getStyle() → {Array}

Returns an array of style items

Source:
  • scripts/cache_media.js, line 455
Returns:
Returns a array of style display objects
Type
Array

<static> toString() → {String}

Creates a text string representation of the media element object

Source:
  • scripts/cache_media.js, line 571
Returns:
Returns a text string representation of the media element object
Type
String