Class minplayer.controller.base
Extends
minplayer.display.
This is the base minplayer 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: minplayer.controller.base.js.
Constructor Attributes | Constructor Name and Description |
---|---|
minplayer.controller.base(context, options)
|
Field Attributes | Field Name and Description |
---|---|
Reset the constructor.
|
- Fields borrowed from class minplayer.plugin:
- lock, name, options, pluginReady, queue, triggered
Method Attributes | Method Name and Description |
---|---|
playPause(state, media)
Plays or pauses the media.
|
|
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 minplayer.display:
- fullscreen, getDisplay, getScaledRect, isFullScreen, isValid, onResize, toggleFullScreen
- Methods borrowed from class minplayer.plugin:
- addPlugin, bind, checkQueue, destroy, get, loadPlugins, ready, trigger, unbind
Class Detail
minplayer.controller.base(context, options)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
Field Detail
constructor
Reset the constructor.
Method Detail
construct()
{object}
getElements()
- Returns:
- {object} The elements defined by this display.
playPause(state, media)
Plays or pauses the media.
- Parameters:
- {bool} state
- true => play, false => pause.
- {object} media
- The media player object.
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.