?? rtpsocket.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Sat May 20 18:57:56 PDT 2000 --><TITLE>: Class RTPSocket</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/rtp/RTPPushDataSource.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/rtp/SessionAddress.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="RTPSocket.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.media.rtp</FONT><BR>Class RTPSocket</H2><PRE>java.lang.Object | +--<A HREF="../../../javax/media/protocol/DataSource.html">javax.media.protocol.DataSource</A> | +--<A HREF="../../../javax/media/protocol/PushDataSource.html">javax.media.protocol.PushDataSource</A> | +--<A HREF="../../../javax/media/rtp/RTPPushDataSource.html">javax.media.rtp.RTPPushDataSource</A> | +--<B>javax.media.rtp.RTPSocket</B></PRE><HR><DL><DT>public class <B>RTPSocket</B><DT>extends <A HREF="../../../javax/media/rtp/RTPPushDataSource.html">RTPPushDataSource</A><DT>implements <A HREF="../../../javax/media/rtp/DataChannel.html">DataChannel</A></DL><P>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.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/media/rtp/RTPPushDataSource.html"><CODE>RTPPushDataSource</CODE></A>, <A HREF="../../../javax/media/rtp/DataChannel.html"><CODE>DataChannel</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#RTPSocket()">RTPSocket</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#connect()">connect</A></B>()</CODE><BR> connect yourself and the control source</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#disconnect()">disconnect</A></B>()</CODE><BR> disconnect yourself and the control source</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/rtp/RTPPushDataSource.html">RTPPushDataSource</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#getControlChannel()">getControlChannel</A></B>()</CODE><BR> Retrieves the control channel datasource of the object implementing this interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#setContentType(java.lang.String)">setContentType</A></B>(java.lang.String contentType)</CODE><BR> Set your content type as well as content type of the control source</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#start()">start</A></B>()</CODE><BR> Start yourself and the control source</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/RTPSocket.html#stop()">stop</A></B>()</CODE><BR> Stop yourself and the control source</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.rtp.RTPPushDataSource"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.rtp.<A HREF="../../../javax/media/rtp/RTPPushDataSource.html">RTPPushDataSource</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getContentType()">getContentType</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getControl(java.lang.String)">getControl</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getControls()">getControls</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getDuration()">getDuration</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getInputStream()">getInputStream</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getOutputStream()">getOutputStream</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#getStreams()">getStreams</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#initCheck()">initCheck</A>, <A HREF="../../../javax/media/rtp/RTPPushDataSource.html#isStarted()">isStarted</A>,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -