📄 qtplayer.html
字号:
public <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> <B>getDisplayBounds</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method is called automatically via the QTCanvas object associated with this client to set the boundary of the movie. <br><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/Drawable.html#getDisplayBounds()">getDisplayBounds</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - a QDRect object describing the boundary</DL></DD></DL><HR><A NAME="task()"><!-- --></A><H3>task</H3><PRE>public final void <B>task</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method performs idle processing for the QTPlayer and will be automatically called if this object is added to the TaskThread object.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><CODE>quicktime.util.TaskThread</CODE></DL></DD></DL><HR><A NAME="setClip(quicktime.qd.Region)"><!-- --></A><H3>setClip</H3><PRE>public void <B>setClip</B>(<A HREF="../../../quicktime/qd/Region.html">Region</A> theClip) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows you to set a QTPlayer's clipping region.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#setClip(quicktime.qd.Region)">setClip</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>theClip</CODE> - a Region that defines the player's clipping region.</DL></DD></DL><HR><A NAME="getClip()"><!-- --></A><H3>getClip</H3><PRE>public <A HREF="../../../quicktime/qd/Region.html">Region</A> <B>getClip</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows you to obtain information describing a QTPlayer's clipping regions.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/display/QTDrawable.html#getClip()">getClip</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the clipping region of the entire QTPlayer object</DL></DD></DL><HR><A NAME="setTime(int)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(int time) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the player to the time specified. This time value at this level is a totally arbitrary value - what time that means in "real time" is determined by the implementor of the interface, typically the scale value will determine what a "real" time of 1 second is.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#setTime(int)">setTime</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the new time value</DL></DD></DL><HR><A NAME="getTime()"><!-- --></A><H3>getTime</H3><PRE>public int <B>getTime</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current time value of the object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#getTime()">getTime</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current time.</DL></DD></DL><HR><A NAME="getDuration()"><!-- --></A><H3>getDuration</H3><PRE>public int <B>getDuration</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the duration of the media attached to the player. If the player has no media, or does not know the duration of its media it can return the constant kDurationUnknown.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#getDuration()">getDuration</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the media duration.</DL></DD></DL><HR><A NAME="getTimeBase()"><!-- --></A><H3>getTimeBase</H3><PRE>public <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>getTimeBase</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></B></DD><DD>Returns the current time base that provides the time foundation of this object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#getTimeBase()">getTimeBase</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD>Following copied from interface: <CODE>quicktime.app.time.Timeable</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a TimeBase</DL></DD></DL><HR><A NAME="setRate(float)"><!-- --></A><H3>setRate</H3><PRE>public void <B>setRate</B>(float rate) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the player to the playback rate. Typically a rate of zero will mean that the player is stopped, a positive value that the player is playing forwards, a negative value that the player is playing backwards.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#setRate(float)">setRate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rate</CODE> - the new playback rate.</DL></DD></DL><HR><A NAME="getRate()"><!-- --></A><H3>getRate</H3><PRE>public float <B>getRate</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current rate of the player.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Timeable.html#getRate()">getRate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Timeable.html">Timeable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the playback rate</DL></DD></DL><HR><A NAME="getScale()"><!-- --></A><H3>getScale</H3><PRE>public int <B>getScale</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the time scale of the player - how many ticks per second.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/players/Playable.html#getScale()">getScale</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/players/Playable.html">Playable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current scale.</DL></DD></DL><HR><A NAME="getVolume()"><!-- --></A><H3>getVolume</H3><PRE>public float <B>getVolume</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the volume setting (0 is silent or muted, 1 is unity gain)<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#getVolume()">getVolume</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD></DL><HR><A NAME="setVolume(float)"><!-- --></A><H3>setVolume</H3><PRE>public void <B>setVolume</B>(float val) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets the volume.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#setVolume(float)">setVolume</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD></DL><HR><A NAME="isMuted()"><!-- --></A><H3>isMuted</H3><PRE>public boolean <B>isMuted</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the current mute status<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#isMuted()">isMuted</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD></DL><HR><A NAME="setMuted(boolean)"><!-- --></A><H3>setMuted</H3><PRE>public void <B>setMuted</B>(boolean flag) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allows the muting of the specific channel. When unmuted the AudioSpec object will return to its current volume setting.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html#setMuted(boolean)">setMuted</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/audio/AudioSpec.html">AudioSpec</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - turn muting on - true or off - false.</DL></DD></DL><HR><A NAME="setControllerVisible(boolean)"><!-- --></A><H3>setControllerVisible</H3><PRE>public void <B>setControllerVisible</B>(boolean flag) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>If true makes the MovieController visible, otherwise makes it invisible<DD><DL></DL></DD></DL><HR><A NAME="isControllerVisible()"><!-- --></A><H3>isControllerVisible</H3><PRE>public boolean <B>isControllerVisible</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns the visible state of the controller.<DD><DL></DL></DD></DL><HR><A NAME="setControllerSizeReserved(boolean)"><!-- --></A><H3>setControllerSizeReserved</H3><PRE>public void <B>setControllerSizeReserved</B>(boolean flag) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets parameters on the resize of the controller. If true then the size of controller and its movie will be set with the setDisplayBounds. If false then setDisplayBounds will resize the movie to the specified rectangle. Setting this flag will cause the movie and its controller to be resized.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the resize flag</DL></DD></DL><HR><A NAME="isControllerSizeReserved()"><!-- --></A><H3>isControllerSizeReserved</H3><PRE>public boolean <B>isControllerSizeReserved</B>()</PRE><DL><DD>Returns true if display space is being reserved for the size of the controller<DD><DL></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 CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="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="class-use/QTPlayer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="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="../../../quicktime/app/players/MoviePresenter.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/players/QTPlayerAWTEventHandler.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="QTPlayer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -