Class Index | File Index

Classes


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.

Class Summary
Constructor Attributes Constructor Name and Description
 
media.controllers.base(context, options)
Method Summary
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()
See:
media.plugin#construct

getElements()
See:
media.display#getElements

setPlayer(player)
Parameters:
player
See:
media.plugin#setPlayer

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.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Nov 22 2011 23:07:52 GMT+0100 (CET)