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

📄 multiplexer.html

📁 jmf api 帮助文档 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  Multiplexer</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/MediaProxy.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/media/Owned.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="Multiplexer.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  Multiplexer</H2><HR><DL><DT>public interface <B>Multiplexer</B><DT>extends <A HREF="../../javax/media/PlugIn.html">PlugIn</A></DL><P>A <code>Multiplexer</code> is a media processing unit takes input data from multiple tracks,  combines the data into an interleaved container format, then outputs the interleaved data through an output <code>DataSource</code>.  It typically has multiple inputs and one output.  A <CODE>Multiplexer</CODE> can also have a single track as input. In this case,  multiple tracks don't have to be interleaved, but the <CODE>Multiplexer</CODE>  might format the output stream with additional data interleaved with the input track. <p> If a <code>Multiplexer</code> implements the <code>Clock</code> interface, it can be used by a <code>Player</code> as the master time base for synchronization.   In this case, the <code>Multiplexer</code> should update the media time and time-base time as  it processes the media.<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;<!-- ======== 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/protocol/DataSource.html">DataSource</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#getDataOutput()">getDataOutput</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the output <code>DataSource</code> from this <CODE>Multiplexer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/Format.html">Format</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#getSupportedInputFormats()">getSupportedInputFormats</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the input formats that this <CODE>Multiplexer</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/protocol/ContentDescriptor.html">ContentDescriptor</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#getSupportedOutputContentDescriptors(javax.media.Format[])">getSupportedOutputContentDescriptors</A></B>(<A HREF="../../javax/media/Format.html">Format</A>[]&nbsp;inputs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lists the output content-descriptors that this <CODE>Multiplexer</CODE> supports.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#process(javax.media.Buffer, int)">process</A></B>(<A HREF="../../javax/media/Buffer.html">Buffer</A>&nbsp;buffer,        int&nbsp;trackID)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Processes the input <CODE>Buffer</CODE> and multiplexes it with data from other tracks.</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/Multiplexer.html#setContentDescriptor(javax.media.protocol.ContentDescriptor)">setContentDescriptor</A></B>(<A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>&nbsp;outputContentDescriptor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the output content-type for this <CODE>Multiplexer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#setInputFormat(javax.media.Format, int)">setInputFormat</A></B>(<A HREF="../../javax/media/Format.html">Format</A>&nbsp;format,               int&nbsp;trackID)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the input <CODE>Format</CODE> for the specified track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Multiplexer.html#setNumTracks(int)">setNumTracks</A></B>(int&nbsp;numTracks)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of input tracks that the <CODE>Multiplexer</CODE> can expect to find in the input stream.</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.Controls"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">

⌨️ 快捷键说明

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