Class osmplayer
Extends
minplayer.
The main osmplayer class.
Usage:
// Create a media player.
var player = jQuery("#player").osmplayer({
});
Defined in: osmplayer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
osmplayer(context, options)
|
Field Attributes | Field Name and Description |
---|---|
Reset the constructor.
|
|
<static> |
osmplayer.parser
The parser object.
|
The play queue and index.
|
Method Attributes | Method Name and Description |
---|---|
addToQueue(file)
Adds a file to the play queue.
|
|
create(name, base, context)
Creates a new plugin within this context.
|
|
Gets the full screen element.
|
|
<static> |
osmplayer.getImage(mediafiles, type, callback)
Returns an image provided image array.
|
loadNode(node)
The load node function.
|
|
playNext()
Plays the next media file in the queue.
|
- Methods borrowed from class minplayer:
- addEvents, addKeyEvents, bindTo, getFiles, load, loadPlayer, resize, setFocus, showError
Class Detail
osmplayer(context, options)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
Field Detail
constructor
Reset the constructor.
<static>
osmplayer.parser
The parser object.
Defined in: osmplayer.parser.default.js.
Defined in: osmplayer.parser.default.js.
playQueue
The play queue and index.
Method Detail
{object}
addToQueue(file)
Adds a file to the play queue.
- Parameters:
- {object} file
- The file to add to the queue.
- Returns:
- {object} The file that was added to the queue.
construct()
- See:
- minplayer.plugin.construct
{object}
create(name, base, context)
Creates a new plugin within this context.
- Parameters:
- {string} name
- The name of the plugin you wish to create.
- {object} base
- The base object for this plugin.
- {object} context
- The context which you would like to create.
- Returns:
- {object} The new plugin object.
{object}
fullScreenElement()
Gets the full screen element.
- Returns:
- {object} The element that will go into fullscreen.
<static>
osmplayer.getImage(mediafiles, type, callback)
Returns an image provided image array.
- Parameters:
- {object} mediafiles
- The mediafiles to search within.
- {string} type
- The type of image to look for.
- {function} callback
- Called when the image is retrieved.
loadNode(node)
The load node function.
- Parameters:
- {object} node
- A media node object.
playNext()
Plays the next media file in the queue.