|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arunta.base.audio.streaming.StreamPacketReceiver
public class StreamPacketReceiver
Receiver for audio stream packets.
Uses UDP to listen for packets from remote senders.
Constructor Summary | |
---|---|
StreamPacketReceiver(java.net.InetSocketAddress socketAddress)
Initialises a packet receiver. |
Method Summary | |
---|---|
void |
setPacketListener(StreamPacketListener packetListener)
|
void |
startProcessing()
Start an internal thread which will receive stream packets from a Total Recall VR system on a UDP socket and dispatch the packets to a registered StreamPacketListener , if any. |
void |
stopProcessing()
Stops the internal thread that receives and dispatches packets to a registered StreamPacketListener . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamPacketReceiver(java.net.InetSocketAddress socketAddress)
Note that the receiver will not actually receive packets until a call to
startProcessing()
.
socketAddress
- The socket to use to receive packets.Method Detail |
---|
public void startProcessing() throws java.io.IOException
StreamPacketListener
, if any.
java.io.IOException
- On any problem with establishing a UDP socket.public void stopProcessing()
StreamPacketListener
.
Note that the caller thread will block until the internal thread ends processing.
public void setPacketListener(StreamPacketListener packetListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |