|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bramosystems.oss.player.script.client.ExportUtil
public class ExportUtil
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.
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 |
---|
public ExportUtil()
Method Detail |
---|
public static void signalAPIReady()
onBSTPlayerReady()
javascript function on the
host page.
This method should be called after all widgets have been exported
public static void exportPlayer()
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.
public static void exportSeekBar()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |