PlayerListener, UpdateListener<PlayerEvent>, java.util.EventListenerpublic class PromptAudioJavaSound extends java.lang.Object implements PlayerListener
| Modifier and Type | Class | Description |
|---|---|---|
class |
PromptAudioJavaSound.LineEventRunnable |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.net.URL |
audioURL |
|
protected Player |
player |
|
protected boolean |
silent |
|
protected javax.swing.Action |
startAction |
|
protected javax.swing.Action |
stopAction |
|
protected float |
volume |
| Constructor | Description |
|---|---|
PromptAudioJavaSound() |
PromptAudioViewer contains a button representing the media to play.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPromptPresenterListener(PromptPresenterListener listener) |
|
void |
close() |
|
java.lang.String[][] |
getSupportedMIMETypes() |
|
boolean |
isSilent() |
|
void |
loadAudioContents(Mediaitem mi,
java.net.URL context) |
|
void |
open() |
|
void |
removePromptPresenterListener(PromptPresenterListener listener) |
|
void |
setAudioChannelGroupLocator(ChannelGroupLocator channelGroupLocator) |
|
void |
setAudioChannelOffset(int channelOffset) |
|
void |
setAudioMixer(javax.sound.sampled.Mixer mixer) |
|
void |
setRecScriptResources(java.util.Hashtable mh) |
Sets the prompts
|
void |
setSilent(boolean silent) |
|
void |
setStartControlAction(javax.swing.Action startControlAction) |
|
void |
setStartControlEnabled(boolean startEnabled) |
|
void |
setStopControlAction(javax.swing.Action stopControlAction) |
|
void |
setStopControlEnabled(boolean stopEnabled) |
|
void |
start() |
mediaPlay() plays the media retrieved from a given URL.
|
void |
stop() |
|
void |
update(PlayerEvent playerEvent) |
|
protected void |
updateListeners(PromptPresenterEvent event) |
protected Player player
protected java.net.URL audioURL
protected javax.swing.Action startAction
protected javax.swing.Action stopAction
protected float volume
protected boolean silent
public PromptAudioJavaSound()
public void setAudioMixer(javax.sound.sampled.Mixer mixer)
throws PromptPresenterPluginException
PromptPresenterPluginExceptionpublic void setAudioChannelOffset(int channelOffset)
public void setAudioChannelGroupLocator(ChannelGroupLocator channelGroupLocator) throws PromptPresenterPluginException
PromptPresenterPluginExceptionpublic void setRecScriptResources(java.util.Hashtable mh)
mh - public void open()
throws PromptPresenterException
PromptPresenterExceptionpublic void start()
throws PromptPresenterException
PromptPresenterExceptionpublic void loadAudioContents(Mediaitem mi, java.net.URL context) throws PromptPresenterException
PromptPresenterExceptionpublic void stop()
public void close()
protected void updateListeners(PromptPresenterEvent event)
public void addPromptPresenterListener(PromptPresenterListener listener)
public void removePromptPresenterListener(PromptPresenterListener listener)
public void update(PlayerEvent playerEvent)
update in interface PlayerListenerupdate in interface UpdateListener<PlayerEvent>public void setStartControlEnabled(boolean startEnabled)
public void setStopControlEnabled(boolean stopEnabled)
public void setStartControlAction(javax.swing.Action startControlAction)
public void setStopControlAction(javax.swing.Action stopControlAction)
public boolean isSilent()
public void setSilent(boolean silent)
public java.lang.String[][] getSupportedMIMETypes()