Class media.controllers.base
Extends
media.display.
This is the base media controller. Other controllers can derive
from the base and either build on top of it or simply define the elements
that this base controller uses.
Defined in: drupal.media.controllers.base.js.
Constructor Attributes | Constructor Name and Description |
---|---|
media.controllers.base(context, options)
|
Method Attributes | Method Name and Description |
---|---|
setPlayer(player)
|
|
setPlayPause(state)
Sets the play and pause state of the control bar.
|
|
setTimeString(element, time)
Sets the time string on the control bar.
|
- Methods borrowed from class media.display:
- isValid
Class Detail
media.controllers.base(context, options)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
Method Detail
construct()
getElements()
setPlayer(player)
- Parameters:
- player
setPlayPause(state)
Sets the play and pause state of the control bar.
- Parameters:
- {boolean} state
- TRUE - Show Play, FALSE - Show Pause.
setTimeString(element, time)
Sets the time string on the control bar.
- Parameters:
- {string} element
- The name of the element to set.
- {number} time
- The total time amount to set.