new MediaContainer(element, options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element | HTMLElement | DOM element for component instantiation and scope | ||||||||||||
options | Object | Properties
|
Classes
Methods
calculateRatio()
- Description:
Calculate the ratio of the iframe video.
- Source:
destroy()
- Description:
Destroy component.
- Source:
handleParameters()
- Description:
Handle the parameters of the iframe video.
- Source:
init()
- Description:
Initialise component.
- Source:
(static) autoInit(root) → {MediaContainer}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root | HTMLElement | DOM element for component instantiation and scope |
Returns:
An instance of MediaContainer.
- Type
- MediaContainer