Class minplayer.display
Extends
minplayer.plugin.
Base class used to provide the display and options for any component
deriving from this class. Components who derive are expected to provide
the elements that they define by implementing the getElements method.
Defined in: minplayer.display.js.
Constructor Attributes | Constructor Name and Description |
---|---|
minplayer.display(name, context, options, queue)
|
Field Attributes | Field Name and Description |
---|---|
Reset the constructor.
|
|
Called when the window resizes.
|
- Fields borrowed from class minplayer.plugin:
- context, lock, name, options, pluginReady, queue, triggered
Method Attributes | Method Name and Description |
---|---|
fullscreen(full)
Make this display element go fullscreen.
|
|
Gets the full screen element.
|
|
Returns the display for this component.
|
|
Returns all the jQuery elements that this component uses.
|
|
getScaledRect(ratio, rect)
Returns a scaled rectangle provided a ratio and the container rect.
|
|
Checks to see if we are in fullscreen mode.
|
|
isValid()
Returns if this component is valid and exists within the DOM.
|
|
Toggle fullscreen.
|
- Methods borrowed from class minplayer.plugin:
- addPlugin, bind, checkQueue, create, destroy, get, poll, ready, trigger, unbind
Class Detail
minplayer.display(name, context, options, queue)
- Parameters:
- {string} name
- The name of this plugin.
- {object} context
- The jQuery context this component resides.
- {object} options
- The options for this component.
- {object} queue
- The event queue to pass events around.
Field Detail
constructor
Reset the constructor.
onResize
Called when the window resizes.
Method Detail
construct()
- See:
- minplayer.plugin.construct
fullscreen(full)
Make this display element go fullscreen.
- Parameters:
- {boolean} full
- Tell the player to go into fullscreen or not.
{object}
fullScreenElement()
Gets the full screen element.
- Returns:
- {object} The display to be used for full screen support.
{object}
getDisplay()
Returns the display for this component.
- Returns:
- {object} The jQuery context for this display.
{object}
getElements()
Returns all the jQuery elements that this component uses.
- Returns:
- {object} An object which defines all the jQuery elements that this component uses.
{object}
getScaledRect(ratio, rect)
Returns a scaled rectangle provided a ratio and the container rect.
- Parameters:
- {number} ratio
- The width/height ratio of what is being scaled.
- {object} rect
- The bounding rectangle for scaling.
- Returns:
- {object} The Rectangle object of the scaled rectangle.
{boolean}
isFullScreen()
Checks to see if we are in fullscreen mode.
- Returns:
- {boolean} TRUE - fullscreen, FALSE - otherwise.
{boolean}
isValid()
Returns if this component is valid and exists within the DOM.
- Returns:
- {boolean} TRUE if the plugin display is valid.
toggleFullScreen()
Toggle fullscreen.