|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bramosystems.oss.player.script.client.AbstractExportProvider
public class AbstractExportProvider
Abstract implementation for providers of the player and seekbar widgets exported as Javascript objects.
All methods in the class throw UnsupportedOperationException by default. Subclasses should override and implement as required.
Constructor Summary | |
---|---|
AbstractExportProvider()
|
Method Summary | |
---|---|
com.google.gwt.user.client.ui.Widget |
getMissingPluginVersionWidget(Plugin plugin,
PluginVersion requiredVersion)
Called to retrieve the widget that may be used when the required version of a plugin is not found. |
com.google.gwt.user.client.ui.Widget |
getMissingPluginWidget(Plugin plugin)
Called to retrieve the widget that may be used when the required plugin is not found. |
AbstractMediaPlayer |
getPlayer(String playerProvider,
String playerName,
String mediaURL,
boolean autoplay,
String width,
String height,
HashMap<String,String> options)
Called to retrieve the player implementation that is exported as Javascript object. |
MediaSeekBar |
getSeekBar(int height,
HashMap<String,String> options)
Called to retrieve the seek bar implementation that is exported as Javascript object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractExportProvider()
Method Detail |
---|
public AbstractMediaPlayer getPlayer(String playerProvider, String playerName, String mediaURL, boolean autoplay, String width, String height, HashMap<String,String> options) throws LoadException, PluginNotFoundException, PluginVersionException
playerProvider
- the provider of the playerplayerName
- the name of the playermediaURL
- the URL of the media fileautoplay
- true
to start playback automatically, false
otherwisewidth
- the width of the player (in CSS units)height
- the height of the player (in CSS units)options
- user-defined options supplied during Javascript-object creation
LoadException
- if an error occurs while loading the media.
PluginNotFoundException
- if the required plugin is not found
PluginVersionException
- if the required plugin version is missingpublic MediaSeekBar getSeekBar(int height, HashMap<String,String> options)
height
- the height of the seek bar (in pixels)options
- user-defined options supplied during Javascript-object creation.
public com.google.gwt.user.client.ui.Widget getMissingPluginWidget(Plugin plugin)
plugin
- the required plugin
public com.google.gwt.user.client.ui.Widget getMissingPluginVersionWidget(Plugin plugin, PluginVersion requiredVersion)
plugin
- the required pluginrequiredVersion
- the required plugin version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |