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

📄 demultiplexer.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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:43 PDT 2000 --><TITLE>: Interface  Demultiplexer</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/DataSinkProxy.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/media/DownloadProgressListener.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="Demultiplexer.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</FONT><BR>Interface  Demultiplexer</H2><HR><DL><DT>public interface <B>Demultiplexer</B><DT>extends <A HREF="../../javax/media/PlugIn.html">PlugIn</A>, <A HREF="../../javax/media/MediaHandler.html">MediaHandler</A>, <A HREF="../../javax/media/Duration.html">Duration</A></DL><P>A <code>Demultiplexer</code> is a media processing unit that  takes an interleaved media stream as input, extracts the individual tracks from the stream, and outputs the resulting tracks. It has one input and multiple outputs. <p> A <code>Demultiplexer</code> is a <CODE>MediaHandler</CODE> and needs to implement the <code>setSource</code> method. This method should throw an <CODE>IncompatibleSourceException</CODE> if the <code>Demultiplexer</code> cannot use the specified <code>DataSource</code>. This typically happens if: <ul> <li>The <code>Demultiplexer</code> doesn't support the type of <CODE>DataSource</CODE> specified (push or pull). <br>&nbsp;</li> <li>The <code>Demultiplexer</code> requires a positionable <CODE>DataSource</CODE>.<br>&nbsp;</li> <li>The <code>Demultiplexer</code>  requires a seekable,  random-access stream. (For example, the QuickTime <CODE>Demultiplexer</CODE> has this requirement.)</li> </ul> The <code>setSource</code> method should throw an <CODE>IOException</CODE> if the specified <code>DataSource</code> contains a null stream array. <p> Note: No data is read by the <code>setSource</code> method. When trying to select a <CODE>Demultiplexer</CODE> for a particular content-type from a list of <CODE>Demultiplexer</CODE> implementations obtained through the <CODE>PlugInManager</CODE>, the <CODE>Processor</CODE> picks the first <CODE>Demultiplexer</CODE> that doesn't for throw an <CODE>IncompatibleSourceException</CODE> or an <CODE>IOException</CODE> when <CODE>setSource</CODE> is called.  If a particular <code>Demultiplexer</code> reads some data from the stream and then throws an <CODE>IncompatibleSourceException</CODE>, the next <CODE>Demultiplexer</CODE> in the list gets the stream in a different state.<P><DL><DT><B>Since: </B><DD>JMF 2.0</DD></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_javax.media.PlugIn"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface javax.media.<A HREF="../../javax/media/PlugIn.html">PlugIn</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/PlugIn.html#BUFFER_PROCESSED_FAILED">BUFFER_PROCESSED_FAILED</A>,  <A HREF="../../javax/media/PlugIn.html#BUFFER_PROCESSED_OK">BUFFER_PROCESSED_OK</A>,  <A HREF="../../javax/media/PlugIn.html#INPUT_BUFFER_NOT_CONSUMED">INPUT_BUFFER_NOT_CONSUMED</A>,  <A HREF="../../javax/media/PlugIn.html#OUTPUT_BUFFER_NOT_FILLED">OUTPUT_BUFFER_NOT_FILLED</A>,  <A HREF="../../javax/media/PlugIn.html#PLUGIN_TERMINATED">PLUGIN_TERMINATED</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_javax.media.Duration"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface javax.media.<A HREF="../../javax/media/Duration.html">Duration</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/Duration.html#DURATION_UNBOUNDED">DURATION_UNBOUNDED</A>,  <A HREF="../../javax/media/Duration.html#DURATION_UNKNOWN">DURATION_UNKNOWN</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== 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;<A HREF="../../javax/media/Time.html">Time</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#getDuration()">getDuration</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the duration of this media stream when played at the default rate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/Time.html">Time</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#getMediaTime()">getMediaTime</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current media time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#getSupportedInputContentDescriptors()">getSupportedInputContentDescriptors</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lists the all of the input content descriptors that this <CODE>Demultiplexer</CODE> supports.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/Track.html">Track</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#getTracks()">getTracks</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Retrieves the individual tracks that the media stream contains.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#isPositionable()">isPositionable</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether or not the stream can be repositioned to the beginning.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#isRandomAccess()">isRandomAccess</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether or not the stream can be positioned at any <CODE>Time</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/Time.html">Time</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#setPosition(javax.media.Time, int)">setPosition</A></B>(<A HREF="../../javax/media/Time.html">Time</A>&nbsp;where,            int&nbsp;rounding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the stream position (media time) to the specified <CODE>Time</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#start()">start</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that data is going to start being read from the <CODE>Demultiplexer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Demultiplexer.html#stop()">stop</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that data is going to stop being read from the <CODE>Demultiplexer</CODE>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.PlugIn"><!-- --></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/PlugIn.html">PlugIn</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/PlugIn.html#close()">close</A>, <A HREF="../../javax/media/PlugIn.html#getName()">getName</A>, <A HREF="../../javax/media/PlugIn.html#open()">open</A>, <A HREF="../../javax/media/PlugIn.html#reset()">reset</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.MediaHandler"><!-- --></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/MediaHandler.html">MediaHandler</A></B></TD></TR>

⌨️ 快捷键说明

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