public class JASocketPlayer extends JALoadingPlayer
JASocketPlayer is a JAFramesPlayer equipped with
the ability to accept SiGML input via a TCP/IP server socket, and
then to play the signed animation defined by that SiGML input.JALoadingPlayer.SiGMLPipeWriter| Modifier and Type | Field and Description |
|---|---|
static int |
SWITCH_AVATAR_PORT_OFFSET
Offset for the switch-avatar port numbers relative to those for
standard SiGML input.
|
SZ_CAM_DATA| Constructor and Description |
|---|
JASocketPlayer(JAOptions jopts,
JACanvasEmbedder embedder,
AvatarEventHandler aehdlr,
JASocketPlayerEventHandler spehdlr,
SpeedProvider sp)
Constructs a new
JASocketPlayer, with the the given JA
options, avatar-canvas embedder, avatar-event handler, and
player-event handler, with its cyclic-play flag OFF and its
auto-play flag ON, intially. |
JASocketPlayer(JAOptions jopts,
JACanvasEmbedder embedder,
AvatarEventHandler aehdlr,
JASocketPlayerEventHandler spehdlr,
SpeedProvider sp,
boolean cyclic,
boolean onesign,
boolean auto)
Constructs a new
JASocketPlayer, with the given JA options,
given avatar-canvas embedder, avatar-event handler, player-event
handler, and initial settings of its cyclic-play and auto-play flags. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoPlayIsOn()
Returns the current setting of this player's auto-play flag.
|
void |
setAutoPlay(boolean auto)
Sets this player's auto-play flag as specified.
|
void |
startSiGMLInput(JAOptions jopts)
Starts this player's SiGML input connections server; this function
could naturally be performed by the player's constructor, but for
the sake of GUI responsiveness is factored out into this separate
initialisation method.
|
void |
startSwitchAvatarInput()
Starts this player's Switch-Avatar connections server; this
function could naturally be performed by the player's constructor, but
for the sake of GUI responsiveness is factored out into this separate
initialisation method.
|
void |
terminate()
Terminates this player, including shut-down of its SiGML-input
server.
|
playSiGML, playSiGMLPiped, playSiGMLURL, playSiGMLURL, processSiGMLInput, replay, saveCASavatarIsLoaded, avatarIsUnloaded, awaitPlayerInactive, clearAnimation, countFrames, countSigns, createStandardCameraChangeMonitor, currentSign, doVideoGen, ensureAnimationIsComplete, framePlayFinishes, framePlayStarts, getAnimation, getFrameIndexAccess, handleDoIdleAmbientChange, hasAnimationData, makeSignStatusRecord, playerIsActive, requestSwitchAvatar, resumePlaying, sequencePlayFinishes, sequencePlayStarts, setAnimation, setCyclicPlay, setSingleSignPlay, showFrame, showFrame, startPlaying, startPlayingStreamed, stopPlaying, suspendPlaying, videoGenIsPossible, videoServiceIsAvailablepublic static final int SWITCH_AVATAR_PORT_OFFSET
public JASocketPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JASocketPlayerEventHandler spehdlr, SpeedProvider sp)
JASocketPlayer, with the the given JA
options, avatar-canvas embedder, avatar-event handler, and
player-event handler, with its cyclic-play flag OFF and its
auto-play flag ON, intially.public JASocketPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JASocketPlayerEventHandler spehdlr, SpeedProvider sp, boolean cyclic, boolean onesign, boolean auto)
JASocketPlayer, with the given JA options,
given avatar-canvas embedder, avatar-event handler, player-event
handler, and initial settings of its cyclic-play and auto-play flags.public void startSiGMLInput(JAOptions jopts)
public void startSwitchAvatarInput()
public void setAutoPlay(boolean auto)
public boolean autoPlayIsOn()
public void terminate()
throws java.lang.InterruptedException
terminate in class JAFramesPlayerjava.lang.InterruptedException