Module: Media

Media controller
Author:
  • Onien
Source:

Classes

Media

Members

(inner) element :HTMLElement

controlled element
Type:
  • HTMLElement
Source:

Methods

(inner) addMedia(options) → {HTMLDivElement}

adds media to the Media#element
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
type string can be "video"
transition Object <optional>
Properties
Name Type Description
time number transition duration
styles Object css styles for transition
easing string css transition easing
attrs Object video html attributes "{: }"
name string media name. will be set in "mediaName" html attribute
styles Object <optional>
css styles without transition
src string video source. sets in the "src" html atribute
Source:
Returns:
ParentVideo - html parent element
Type
HTMLDivElement

(inner) constructor(mediaElement)

inits.
Parameters:
Name Type Description
mediaElement HTMLElement
Source: