|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SynthesizedOutputConnectionHandler
JSAPI 1.0 does not know how to stream audio from a server to a client. However, custom implementations exist to fill this gap. Classes implementing this interface can be used to address this custom implementation.
Note that there is only one object to handle the connections for all synthesizers.
| Field Summary | |
|---|---|
static String |
CONFIG_KEY
Configuration key. |
| Method Summary | |
|---|---|
void |
connect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
Establishes a connection from the given ConnectionInformation to this
object. |
void |
disconnect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
Disconnects a previously established connection. |
URI |
getUriForNextSynthesisizedOutput(ConnectionInformation client)
Delegate from SynthesizedOutput.getUriForNextSynthesisizedOutput()
. |
| Field Detail |
|---|
static final String CONFIG_KEY
| Method Detail |
|---|
void connect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
throws IOException
ConnectionInformation to this
object.
client - data container with connection relevant data.output - the current synthesized output.synthesizer - the current synthesizer.
IOException - error establishing the connection.
void disconnect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
client - data container with connection relevant data.output - the current synthesized output.synthesizer - the current synthesizer.
URI getUriForNextSynthesisizedOutput(ConnectionInformation client)
throws NoresourceError
SynthesizedOutput.getUriForNextSynthesisizedOutput()
.
client - data container with connection relevant data.
null if the
streaming uses other means of audio output.
NoresourceError - Error accessing the device.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||