Class media.players.flash
Extends
media.display.
The Flash media player class to control the flash fallback.
Defined in: drupal.media.players.flash.js.
Constructor Attributes | Constructor Name and Description |
---|---|
media.players.flash(context, options, mediaFile)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
media.players.flash.canPlay(file)
|
create()
|
|
destroy()
|
|
<static> |
media.players.flash.getFlash(params)
API to return the Flash player code provided params.
|
Return the player time duration.
|
|
<static> |
media.players.flash.getPriority()
|
isReady()
|
|
load(file)
|
|
onMeta()
Should be called when the meta data has finished loading.
|
|
onPaused()
Should be called when the media is paused.
|
|
Should be called when the media is playing.
|
|
onReady()
Called when the player is ready.
|
|
reset()
Reset the flash player variables.
|
- Methods borrowed from class media.display:
- getElements, isValid
- Methods borrowed from class media.plugin:
- construct, setPlayer
Class Detail
media.players.flash(context, options, mediaFile)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
- mediaFile
Method Detail
<static>
media.players.flash.canPlay(file)
- Parameters:
- file
- See:
- media.players.base#canPlay
create()
destroy()
getDuration()
<static>
media.players.flash.getFlash(params)
API to return the Flash player code provided params.
- Parameters:
- {object} params
- The params used to populate the Flash code.
getPlayer()
{int}
getPlayerDuration()
Return the player time duration.
- Returns:
- {int} The player duration.
<static>
media.players.flash.getPriority()
- See:
- media.players.base#getPriority
isReady()
- See:
- media.players.base#isReady
load(file)
- Parameters:
- file
onMeta()
Should be called when the meta data has finished loading.
onPaused()
Should be called when the media is paused.
onPlaying()
Should be called when the media is playing.
onReady()
Called when the player is ready.
playerFound()
reset()
Reset the flash player variables.