cgl.narada.samples.rtp
Class Transmitter

java.lang.Object
  extended by cgl.narada.samples.rtp.Transmitter

public class Transmitter
extends Object

This class transmits a video stream with an RTPConnector main method also starts a Receiver on the same topic Therefore it receives it own stream too. It will also receive any other stream sent to the same topic.


Constructor Summary
Transmitter(javax.media.rtp.RTPConnector connector)
          construct the transmitter with a RTPConnector
 
Method Summary
 void close()
          Stops the transmission if already started
static javax.media.MediaLocator getMediaLocator()
          get a MediaLocator from a capture device for video
static void main(String[] args)
           
static void printUsage()
           
 void setDataSource(javax.media.protocol.DataSource ds)
          set the datasource
 String start()
          Initialize the RTPManager and start transmitting data Return null if successful, otherwise a string explaining the problem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transmitter

public Transmitter(javax.media.rtp.RTPConnector connector)
construct the transmitter with a RTPConnector

Method Detail

setDataSource

public void setDataSource(javax.media.protocol.DataSource ds)
set the datasource


close

public void close()
Stops the transmission if already started


start

public String start()
Initialize the RTPManager and start transmitting data Return null if successful, otherwise a string explaining the problem


main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

printUsage

public static void printUsage()

getMediaLocator

public static javax.media.MediaLocator getMediaLocator()
get a MediaLocator from a capture device for video



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