Class minplayer.players.html5
Extends
minplayer.display.
The HTML5 media player implementation.
Defined in: minplayer.players.html5.js.
Constructor Attributes | Constructor Name and Description |
---|---|
minplayer.players.html5(context, options, queue)
|
Field Attributes | Field Name and Description |
---|---|
Reset the constructor.
|
- Fields borrowed from class minplayer.display:
- onResize
- Fields borrowed from class minplayer.plugin:
- active, context, lock, name, pluginReady, queue, triggered, uuid
Method Attributes | Method Name and Description |
---|---|
addPlayerEvent(type, callback)
Adds a new player event.
|
|
Add events.
|
|
<static> |
minplayer.players.html5.canPlay(file)
|
<static> |
minplayer.players.html5.getPriority(file)
|
load(file, callback)
|
|
onReady()
|
|
pause(callback)
|
|
play(callback)
|
|
setVolume(vol, callback)
|
|
stop(callback)
|
- Methods borrowed from class minplayer.display:
- fullscreen, fullScreenElement, getDisplay, getElements, getScaledRect, hide, initialize, isFullScreen, onFocus, showThenHide, toggleFullScreen
- Methods borrowed from class minplayer.plugin:
- addPlugin, bind, checkQueue, create, defaultOptions, destroy, get, isEvent, isValid, onAdded, poll, ready, trigger, ubind, unbind
Class Detail
minplayer.players.html5(context, options, queue)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
- {object} queue
- The event queue to pass events around.
Field Detail
constructor
Reset the constructor.
Method Detail
addPlayerEvent(type, callback)
Adds a new player event.
- Parameters:
- {string} type
- The type of event being fired.
- {function} callback
- Called when the event is fired.
{boolean}
addPlayerEvents()
Add events.
- Returns:
- {boolean} If this action was performed.
<static>
{boolean}
minplayer.players.html5.canPlay(file)
- Parameters:
- {object} file
- A minplayer.file object.
- Returns:
- {boolean} If this player can play this media type.
- See:
- minplayer.players.base#canPlay
construct()
- See:
- minplayer.plugin.construct
{object}
createPlayer()
- Returns:
- {object} The media player entity.
- See:
- minplayer.players.base#create
{object}
getPlayer()
- Returns:
- {object} The media player object.
<static>
{number}
minplayer.players.html5.getPriority(file)
- Parameters:
- {object} file
- A minplayer.file object.
- Returns:
- {number} The priority of this media player.
- See:
- minplayer.players.base#getPriority
load(file, callback)
- Parameters:
- {object} file
- A minplayer.file object.
- callback
onReady()
pause(callback)
- Parameters:
- callback
play(callback)
- Parameters:
- callback
{boolean}
playerFound()
- Returns:
- {boolean} TRUE - if the player is in the DOM, FALSE otherwise.
setVolume(vol, callback)
- Parameters:
- vol
- callback
stop(callback)
- Parameters:
- callback