com.bramosystems.oss.player.script.client
Class ExportUtil

java.lang.Object
  extended by com.bramosystems.oss.player.script.client.ExportUtil

public class ExportUtil
extends java.lang.Object

Utility class to export the player and seek bar widgets as Javascript objects that can be used in non-GWT applications.

The objects are bound to the bstplayer namespace.

Author:
Sikirulai Braheem
See Also:
Exporting the player widgets

Constructor Summary
ExportUtil()
           
 
Method Summary
static void exportPlayer()
          Exports the AbstractMediaPlayer implementation as Javascript object.
static void exportSeekBar()
          Exports a MediaSeekBar implementation as Javascript object.
static void signalAPIReady()
          Calls the onBSTPlayerReady() javascript function on the host page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportUtil

public ExportUtil()
Method Detail

signalAPIReady

public static void signalAPIReady()
Calls the onBSTPlayerReady() javascript function on the host page.

This method should be called after all widgets have been exported


exportPlayer

public static void exportPlayer()
Exports the AbstractMediaPlayer implementation as Javascript object.

The player is made available as a bstplayer.Player Javascript object. The object supports all the public methods defined in the AbstractMediaPlayer and PlaylistSupport.

Note: The bstplayer.Player object defines an addEventListener(eventName, function) method, instead of the addXXXHandler() methods.


exportSeekBar

public static void exportSeekBar()
Exports a MediaSeekBar implementation as Javascript object.

The seekbar is made available as a bstplayer.SeekBar Javascript object. The object supports all the public methods defined in the MediaSeekBar class.

Note: The bstplayer.SeekBar object defines an addEventListener(eventName, function) method, instead of the addXXXHandler() methods.



Copyright © 2009-2011. All Rights Reserved.