player
Class JALoadingPlayer

java.lang.Object
  extended by player.JAFramesPlayer
      extended by player.JALoadingPlayer
All Implemented Interfaces:
AvatarEventHandler
Direct Known Subclasses:
JASocketPlayer

public class JALoadingPlayer
extends JAFramesPlayer

A JALoadingPlayer is a JAFramesPlayer equipped with the ability to load an animation sequence for a given SiGML or CAS source (URL or string), and then to play that sequence.


Field Summary
 
Fields inherited from class player.JAFramesPlayer
SZ_CAM_DATA
 
Constructor Summary
JALoadingPlayer(JAOptions jopts, JACanvasEmbedder embedder)
          Constructs a new JA Loading Player using the given options and avatar-canvas embedder, with no avatar-event handler, no player-event handler, no speed control, and with the player's cyclic-play and single-sign flags both intitially false.
JALoadingPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JALoadingPlayerEventHandler lpehdlr, SpeedProvider sp)
          Constructs a JALoadingPlayer using the given options, avatar-canvas embedder, avatar-event handler, player-event handler, speed control, and with the player's cyclic-play and single-sign flags both intitially false.
JALoadingPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JALoadingPlayerEventHandler lpehdlr, SpeedProvider sp, boolean cyclic, boolean onesign)
          Constructs a JALoadingPlayer using the given options, avatar-canvas embedder, avatar-event handler, player-event handler, speed control, and initial cyclic-play and single-sign flag settings.
 
Method Summary
 void playCAS(CASFrame[] frames)
          Plays the animation defined the given CAS frames sequence.
 void playSiGML(java.lang.String sigml)
          Plays the animation generated from the given SiGML string.
 void playSiGMLURL(java.net.URL url)
          Plays the animation generated from the given SiGML URL, which is assumed to be non-null.
 void processSiGMLInput(java.io.InputStream sins, boolean doplay)
          Plays the animation generated from the given SiGML InputStream.
 void replay()
          Replays this player's current animation, which is assumed to exist as a result of a previous call to one of the play...() methods.
 
Methods inherited from class player.JAFramesPlayer
avatarIsLoaded, avatarIsUnloaded, awaitPlayerInactive, clearAnimation, countFrames, countSigns, createStandardCameraChangeMonitor, currentSign, ensureAnimationIsComplete, framePlayFinishes, framePlayStarts, getAnimation, getFrameIndexAccess, hasAnimationData, makeSignStatusRecord, playerIsActive, requestSwitchAvatar, resumePlaying, sequencePlayFinishes, sequencePlayStarts, setAnimation, setCyclicPlay, setSingleSignPlay, showFrame, showFrame, startPlaying, stopPlaying, suspendPlaying, terminate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JALoadingPlayer

public JALoadingPlayer(JAOptions jopts,
                       JACanvasEmbedder embedder)
Constructs a new JA Loading Player using the given options and avatar-canvas embedder, with no avatar-event handler, no player-event handler, no speed control, and with the player's cyclic-play and single-sign flags both intitially false.


JALoadingPlayer

public JALoadingPlayer(JAOptions jopts,
                       JACanvasEmbedder embedder,
                       AvatarEventHandler aehdlr,
                       JALoadingPlayerEventHandler lpehdlr,
                       SpeedProvider sp)
Constructs a JALoadingPlayer using the given options, avatar-canvas embedder, avatar-event handler, player-event handler, speed control, and with the player's cyclic-play and single-sign flags both intitially false.


JALoadingPlayer

public JALoadingPlayer(JAOptions jopts,
                       JACanvasEmbedder embedder,
                       AvatarEventHandler aehdlr,
                       JALoadingPlayerEventHandler lpehdlr,
                       SpeedProvider sp,
                       boolean cyclic,
                       boolean onesign)
Constructs a JALoadingPlayer using the given options, avatar-canvas embedder, avatar-event handler, player-event handler, speed control, and initial cyclic-play and single-sign flag settings.

Method Detail

playSiGMLURL

public void playSiGMLURL(java.net.URL url)
                  throws java.lang.InterruptedException
Plays the animation generated from the given SiGML URL, which is assumed to be non-null.

Throws:
java.lang.InterruptedException

playSiGML

public void playSiGML(java.lang.String sigml)
               throws java.lang.InterruptedException
Plays the animation generated from the given SiGML string.

Throws:
java.lang.InterruptedException

processSiGMLInput

public void processSiGMLInput(java.io.InputStream sins,
                              boolean doplay)
                       throws java.lang.InterruptedException
Plays the animation generated from the given SiGML InputStream.

Throws:
java.lang.InterruptedException

playCAS

public void playCAS(CASFrame[] frames)
Plays the animation defined the given CAS frames sequence.


replay

public void replay()
Replays this player's current animation, which is assumed to exist as a result of a previous call to one of the play...() methods.