|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.samples.rtp.Receiver
public class Receiver
This Receiver class is used to receive media streams from a NaradaBrokering broker and play the received stream in a window. It can receive and play many streams. There is no limit on that. It waits indefinetely. It should be stopped by Control C When the player window is closed, it still does not close
| Constructor Summary | |
|---|---|
Receiver(javax.media.rtp.RTPConnector connector)
construct a receiver with a given Connector |
|
| Method Summary | |
|---|---|
void |
close()
Close the RTPManager |
String |
initialize()
starts the receiver, returns null if successfull otherwise returns a String explaining the failure reason |
static void |
main(String[] args)
|
static void |
printUsage()
|
static void |
startReceiver(String brokerIP,
int brokerPort,
int topicNumber)
start a Receiver with the given paramaters |
void |
update(javax.media.rtp.event.ReceiveStreamEvent evt)
ReceiveStreamListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Receiver(javax.media.rtp.RTPConnector connector)
| Method Detail |
|---|
public String initialize()
public void close()
public void update(javax.media.rtp.event.ReceiveStreamEvent evt)
update in interface javax.media.rtp.ReceiveStreamListener
public static void startReceiver(String brokerIP,
int brokerPort,
int topicNumber)
public static void main(String[] args)
throws IOException
args -
IOExceptionpublic static void printUsage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||