com.bramosystems.oss.player.script.client
Interface ExportProvider


Deprecated. As of 1.3, replaced with AbstractExportProvider. Will be removed in a future version

public interface ExportProvider

Interface for providers of the player and seekbar widgets exported as Javascript objects.

Author:
Sikirulai Braheem

Method Summary
 com.google.gwt.user.client.ui.Widget getMissingPluginVersionWidget()
          Deprecated. 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()
          Deprecated. Called to retrieve the widget that may be used when the required plugin is not found.
 AbstractMediaPlayer getPlayer(Plugin plugin, String mediaURL, boolean autoplay, String width, String height, HashMap<String,String> options)
          Deprecated. Called to retrieve the player implementation that is exported as Javascript object.
 MediaSeekBar getSeekBar(int height, HashMap<String,String> options)
          Deprecated. Called to retrieve the seek bar implementation that is exported as Javascript object.
 

Method Detail

getPlayer

AbstractMediaPlayer getPlayer(Plugin plugin,
                              String mediaURL,
                              boolean autoplay,
                              String width,
                              String height,
                              HashMap<String,String> options)
                              throws LoadException,
                                     PluginNotFoundException,
                                     PluginVersionException
Deprecated. 
Called to retrieve the player implementation that is exported as Javascript object.

Parameters:
plugin - the required plugin
mediaURL - the URL of the media file
autoplay - true to start playback automatically, false otherwise
width - 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
Returns:
a suitable player implementation
Throws:
LoadException - if an error occurs while loading the media.
PluginNotFoundException - if the required plugin is not found
PluginVersionException - if the required plugin version is missing

getSeekBar

MediaSeekBar getSeekBar(int height,
                        HashMap<String,String> options)
Deprecated. 
Called to retrieve the seek bar implementation that is exported as Javascript object.

Parameters:
height - the height of the seek bar (in pixels)
options - user-defined options supplied during Javascript-object creation.
Returns:
seek bar implementation to be exported as Javascript object

getMissingPluginWidget

com.google.gwt.user.client.ui.Widget getMissingPluginWidget()
Deprecated. 
Called to retrieve the widget that may be used when the required plugin is not found.

Returns:
the widget used when required plugin is missing

getMissingPluginVersionWidget

com.google.gwt.user.client.ui.Widget getMissingPluginVersionWidget()
Deprecated. 
Called to retrieve the widget that may be used when the required version of a plugin is not found.

Returns:
the widget used when required plugin version is missing


Copyright © 2009-2011. All Rights Reserved.