|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.protocol.DataSource | +--javax.media.protocol.PushDataSource | +--javax.media.rtp.RTPPushDataSource | +--javax.media.rtp.RTPSocket
A programmer may abstract the underlying transport mechanism for RTP control and data from the RTPSM. This is done via the RTPSocket object. A RTPSocket datasource must be created and handed over to Manager. The Manager will take care of creating a player for the content type defined for this datasource. When hiding the underlying transport protocol from the RTPSessionManager, the user is responsible for streaming control and data to and from this RTPSocket. Basically, every RTPSocket is a JMF compliant datasource and is used for streaming the data channel of an RTP session to the RTPSM. Specifically, the RTPSocket is an instance of an RTPPushDataSource. It also has a control counterpart RTPPushDataSource which is accessed via methods of the DataChannel interface. Connecting, disconnecting, starting and stopping the RTPSocket will take care of calling these methods on the control RTPPushDataSource as well.The programmer will still need to set the source and destination streams for the data and control source.
RTPPushDataSource
,
DataChannel
Field Summary | |
(package private) RTPPushDataSource |
controlsource
Deprecated. |
Fields inherited from class javax.media.rtp.RTPPushDataSource |
childsrc, contentType, inputstream, outputstream |
Fields inherited from class javax.media.protocol.DataSource |
|
Fields inherited from interface javax.media.Duration |
DURATION_UNBOUNDED, DURATION_UNKNOWN |
Constructor Summary | |
RTPSocket()
Deprecated. |
Method Summary | |
void |
connect()
Deprecated. connect yourself and the control source |
void |
disconnect()
Deprecated. disconnect yourself and the control source |
RTPPushDataSource |
getControlChannel()
Deprecated. Retrieves the control channel datasource of the object implementing this interface. |
void |
setContentType(java.lang.String contentType)
Deprecated. Set your content type as well as content type of the control source |
void |
start()
Deprecated. Start yourself and the control source |
void |
stop()
Deprecated. Stop yourself and the control source |
Methods inherited from class javax.media.rtp.RTPPushDataSource |
getContentType, getControl, getControls, getDuration, getInputStream, getOutputStream, getStreams, initCheck, isStarted, setChild, setInputStream, setOutputStream |
Methods inherited from class javax.media.protocol.DataSource |
getLocator, setLocator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
RTPPushDataSource controlsource
Constructor Detail |
public RTPSocket()
Method Detail |
public RTPPushDataSource getControlChannel()
DataChannel
getControlChannel
in interface DataChannel
public void setContentType(java.lang.String contentType)
setContentType
in class RTPPushDataSource
public void connect() throws java.io.IOException
connect
in class RTPPushDataSource
java.io.IOException
- Thrown if there are IO problems
when connect
is called.public void disconnect()
disconnect
in class RTPPushDataSource
public void start() throws java.io.IOException
start
in class RTPPushDataSource
java.io.IOException
- thrown if the source has IO trouble
at startup time.public void stop() throws java.io.IOException
stop
in class RTPPushDataSource
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |