cgl.narada.samples.rtp
Class Receiver

java.lang.Object
  extended by cgl.narada.samples.rtp.Receiver
All Implemented Interfaces:
EventListener, javax.media.rtp.ReceiveStreamListener

public class Receiver
extends Object
implements javax.media.rtp.ReceiveStreamListener

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

Receiver

public Receiver(javax.media.rtp.RTPConnector connector)
construct a receiver with a given Connector

Method Detail

initialize

public String initialize()
starts the receiver, returns null if successfull otherwise returns a String explaining the failure reason


close

public void close()
Close the RTPManager


update

public void update(javax.media.rtp.event.ReceiveStreamEvent evt)
ReceiveStreamListener

Specified by:
update in interface javax.media.rtp.ReceiveStreamListener

startReceiver

public static void startReceiver(String brokerIP,
                                 int brokerPort,
                                 int topicNumber)
start a Receiver with the given paramaters


main

public static void main(String[] args)
                 throws IOException
Parameters:
args -
Throws:
IOException

printUsage

public static void printUsage()


For comments and suggestions please send e-mail to The NaradaBrokering Project