|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--local.media.UdpStreamSender
UdpStreamSender is a generic stream sender. It takes an InputStream and sends it through UDP.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
UdpStreamSender(java.io.InputStream input_stream,
boolean do_sync,
long frame_rate,
int frame_size,
java.lang.String dest_addr,
int dest_port)
Constructs a UdpStreamSender. |
|
UdpStreamSender(java.io.InputStream input_stream,
boolean do_sync,
long frame_rate,
int frame_size,
org.zoolu.net.UdpSocket src_socket,
java.lang.String dest_addr,
int dest_port)
Constructs a UdpStreamSender. |
|
| Method Summary | |
void |
halt()
Stops running |
boolean |
isRunning()
Whether is running |
void |
run()
Runs it in a new Thread. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UdpStreamSender(java.io.InputStream input_stream,
boolean do_sync,
long frame_rate,
int frame_size,
java.lang.String dest_addr,
int dest_port)
input_stream - the stream sourcedo_sync - whether time synchronization must be performed by the UdpStreamSender,
or it is performed by the InputStream (e.g. the system audio input)frame_rate - the frame rate, i.e. the number of frames that should be sent per second;
it is used to calculate the nominal packet time and,in case of do_sync==true,
the next departure timeframe_size - the size of the payloaddest_addr - the destination addressdest_port - the destination port
public UdpStreamSender(java.io.InputStream input_stream,
boolean do_sync,
long frame_rate,
int frame_size,
org.zoolu.net.UdpSocket src_socket,
java.lang.String dest_addr,
int dest_port)
input_stream - the stream to be sentdo_sync - whether time synchronization must be performed by the UdpStreamSender,
or it is performed by the InputStream (e.g. the system audio input)frame_rate - the frame rate, i.e. the number of frames that should be sent per second;
it is used to calculate the nominal packet time and,in case of do_sync==true,
the next departure timeframe_size - the size of the payloadsrc_socket - the socket used to send the UDP packetdest_addr - the destination addressdest_port - the thestination port| Method Detail |
public boolean isRunning()
public void halt()
public void run()
run in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||