Video JS loader.
This takes care of applying the filter on content which was dynamically loaded.
- Source:
- Copyright:
- 2016 Frédéric Massart - FMCorz.net
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(inner) List :object
of languages and translations for the current page
Type:
- object
(inner) The :string
language that is used in the player
Type:
- string
(inner) Whether :bool
this is the first load of videojs module
Type:
- bool
Methods
(static) setUp(lang)
Initialisei teh videojs Loader.
Adds the listener for the event to then notify video.js.
Parameters:
Name | Type | Description |
---|---|---|
lang |
string | Language to be used in the player |
Listens to Events:
(inner) getLanguageJson() → {Promise}
Returns the json object of the language strings to be used in the player.
Returns:
- Type
- Promise
(inner) notifyVideoJS(e)
Notify video.js of new nodes.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The event. |