📄 sessionmanager.html
字号:
<TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getPassiveParticipants()">getPassiveParticipants</A></B>()</CODE><BR> Returns all the passive participants.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getPeers()">getPeers</A></B>()</CODE><BR> Gets the list of peers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getReceiveStreams()">getReceiveStreams</A></B>()</CODE><BR> Returns the ReceiveStreams created by the SessionManager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getRemoteParticipants()">getRemoteParticipants</A></B>()</CODE><BR> Returns a Vector of all the remote participants in the session.This vector is simply a snapshot of the current state in the SessionManager.The SessionListener interface can be used to get notified of additional participants for the Session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getSendStreams()">getSendStreams</A></B>()</CODE><BR> Returns the SendStreams created by the SessionManager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getSessionAddress()">getSessionAddress</A></B>()</CODE><BR> Method to get the Destination SessionAddress of this SessionManager This will return the data address/port and control address/port that the RTP manager is receiving data/control packets on and sending RTCP packets to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/rtp/RTPStream.html">RTPStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#getStream(long)">getStream</A></B>(long filterssrc)</CODE><BR> Returns the RTPStream created by the SessionManager that has the same SSRC as the filterssrc.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#initSession(javax.media.rtp.SessionAddress, long, javax.media.rtp.rtcp.SourceDescription[], double, double)">initSession</A></B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> localAddress, long defaultSSRC, <A HREF="../../../javax/media/rtp/rtcp/SourceDescription.html">SourceDescription</A>[] defaultUserDesc, double rtcp_bw_fraction, double rtcp_sender_bw_fraction)</CODE><BR> Initializes the session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#initSession(javax.media.rtp.SessionAddress, javax.media.rtp.rtcp.SourceDescription[], double, double)">initSession</A></B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> localAddress, <A HREF="../../../javax/media/rtp/rtcp/SourceDescription.html">SourceDescription</A>[] defaultUserDesc, double rtcp_bw_fraction, double rtcp_sender_bw_fraction)</CODE><BR> This form of initSession is to be used when the SSRC is to be generated by the RTPSM.</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/SessionManager.html#removeAllPeers()">removeAllPeers</A></B>()</CODE><BR> Removes all peers from the list of peers.</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/SessionManager.html#removePeer(javax.media.rtp.SessionAddress)">removePeer</A></B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> peerAddress)</CODE><BR> Removes a peer from the list of peers.</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/SessionManager.html#removeReceiveStreamListener(javax.media.rtp.ReceiveStreamListener)">removeReceiveStreamListener</A></B>(<A HREF="../../../javax/media/rtp/ReceiveStreamListener.html">ReceiveStreamListener</A> listener)</CODE><BR> removes a ReceiveStreamListener</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/SessionManager.html#removeRemoteListener(javax.media.rtp.RemoteListener)">removeRemoteListener</A></B>(<A HREF="../../../javax/media/rtp/RemoteListener.html">RemoteListener</A> listener)</CODE><BR> removes a RTPRemoteListener</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/SessionManager.html#removeSendStreamListener(javax.media.rtp.SendStreamListener)">removeSendStreamListener</A></B>(<A HREF="../../../javax/media/rtp/SendStreamListener.html">SendStreamListener</A> listener)</CODE><BR> removes a SendStreamListener</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/SessionManager.html#removeSessionListener(javax.media.rtp.SessionListener)">removeSessionListener</A></B>(<A HREF="../../../javax/media/rtp/SessionListener.html">SessionListener</A> listener)</CODE><BR> removes a SessionListener</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/SessionManager.html#setMulticastScope(int)">setMulticastScope</A></B>(int multicastScope)</CODE><BR> Sets the IP Multicast TTL for this session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#startSession(int, javax.media.rtp.EncryptionInfo)">startSession</A></B>(int mcastScope, <A HREF="../../../javax/media/rtp/EncryptionInfo.html">EncryptionInfo</A> encryptionInfo)</CODE><BR> This variant of the startSession() method is for starting a session with an empty list of peers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#startSession(javax.media.rtp.SessionAddress, int, javax.media.rtp.EncryptionInfo)">startSession</A></B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> destAddress, int mcastScope, <A HREF="../../../javax/media/rtp/EncryptionInfo.html">EncryptionInfo</A> encryptionInfo)</CODE><BR> This method starts the session, causing RTCP reports to generated and callbacks to be made through the SessionListener interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/SessionManager.html#startSession(javax.media.rtp.SessionAddress, javax.media.rtp.SessionAddress, javax.media.rtp.SessionAddress, javax.media.rtp.EncryptionInfo)">startSession</A></B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> localReceiverAddress, <A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> localSenderAddress, <A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> remoteReceiverAddress, <A HREF="../../../javax/media/rtp/EncryptionInfo.html">EncryptionInfo</A> encryptionInfo)</CODE><BR> This method may be used instead of startSession() above, but only in case of UNICAST sessions.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.Controls"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.media.<A HREF="../../../javax/media/Controls.html">Controls</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/Controls.html#getControl(java.lang.String)">getControl</A>, <A HREF="../../../javax/media/Controls.html#getControls()">getControls</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="SSRC_UNSPEC"><!-- --></A><H3>SSRC_UNSPEC</H3><PRE>public static final long <B>SSRC_UNSPEC</B></PRE><DL><DD>Used to specify an unspecified SSRC for methods which retrieve an SSRC</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="initSession(javax.media.rtp.SessionAddress, long, javax.media.rtp.rtcp.SourceDescription[], double, double)"><!-- --></A><H3>initSession</H3><PRE>public int <B>initSession</B>(<A HREF="../../../javax/media/rtp/SessionAddress.html">SessionAddress</A> localAddress, long defaultSSRC, <A HREF="../../../javax/media/rtp/rtcp/SourceDescription.html">SourceDescription</A>[] defaultUserDesc, double rtcp_bw_fraction, double rtcp_sender_bw_fraction) throws <A HREF="../../../javax/media/rtp/InvalidSessionAddressException.html">InvalidSessionAddressException</A></PRE><DL><DD>Initializes the session. Once this method has been called, the session is "initialized" and this method cannot be called again. <P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>localAddress</CODE> - Encapsulates the *local* control and data addresses to be used for the session. If either InetAddress contained in this parameter is null, a default local address will be chosen; this should be adequate except for multi-homed systems with more than one IP interface. The ports do not necessarily need to be specified (i.e. they may be the ANY_PORT constant); RTPSM will pick appropriate ports in that case. In any case, the fully specified local addresses to be used are returned in this object. <P> Note: The localAddress is the interface and port used by the sending/transmitting threads of the SessionManager. The receiving threads will use the address and port of the RTP session that is supplied in startSession().<DD><CODE>defaultSSRC</CODE> - Identifies an SSRC value to use for this participant. This SSRC value will go out in RTCP listener reports from this participant. .If the user wishes that RTPSM generate the SSRC, it must use the initSession() call mentioned below.<P><DD><CODE>defaultSourceDesc</CODE> - An array of SourceDescription objects containing information to send in RTCP SDES packets for the local participant. This information can be changed by calling setSourceDescription() on the local Participant object.<DD><CODE>rtcp_bw_fraction</CODE> - The fraction of the session bandwidth that the RTPSM must use when sending out RTCP reports.<DD><CODE>rtcp_sender_bw_fraction</CODE> - The fraction of the rtcp_bw_fraction that the RTPSM must use to send out RTCP Sender reports from the local participant. The remaining fraction of the rtcp_bw is used for sending out RTCP Receiver reports. <P> Note : The rtcp_bw_fraction is set to zero for a non-participating observer of this Session. In this case the application will receive both RTP and RTCP messages, but will not send out any RTCP feedback reports. This is equivalent to setting the outgoing RTP/RTCP bandwidth of this application to zero, implying that this application may NOT send out any data or control streams and can thus not make a call to createSendStream(). If it does, it will receive an exception. Further, this application is NOT considered an Participant since it does not send out any RTCP information. Consequently, this client will NOT appear in the list of Participants for this session.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -