📄 track.html
字号:
<DD>This method allows the media to limit the size of the track boundary rectangle. Therefore, the region returned by GetTrackBoundsRgn may not be rectangular and may be smaller than the track boundary region. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.32.htm#iqMovi687">QuickTime::GetTrackBoundsRgn()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Region object specifying the region track's media uses to do drawing.</DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public int <B>getID</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to determine a track's unique track ID value. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.38.htm#iqMovi814">QuickTime::GetTrackID()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the track's ID value.</DL></DD></DL><HR><A NAME="getCreationTime()"><!-- --></A><H3>getCreationTime</H3><PRE>public int <B>getCreationTime</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method returns a track's creation date. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.3b.htm#iqMovi875">QuickTime::GetTrackCreationTime()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the track's creation date.</DL></DD></DL><HR><A NAME="getModificationTime()"><!-- --></A><H3>getModificationTime</H3><PRE>public int <B>getModificationTime</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method returns a track's modification date. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.3b.htm#iqMovi878">QuickTime::GetTrackModificationTime()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the track's modification date.</DL></DD></DL><HR><A NAME="getEnabled()"><!-- --></A><H3>getEnabled</H3><PRE>public boolean <B>getEnabled</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to determine whether a track is currently enabled. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.2d.htm#iqMovi567">QuickTime::GetTrackEnabled()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the track is enabled and false if the track is disabled.</DL></DD></DL><HR><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean enabled) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to enable and disable a track. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.2d.htm#iqMovi563">QuickTime::SetTrackEnabled()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - Enables or disables the track. Set this parameter to true to enable the track. Set this parameter to false to disable the track.</DL></DD></DL><HR><A NAME="getUsage()"><!-- --></A><H3>getUsage</H3><PRE>public int <B>getUsage</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to determine whether a track is used in a movie, its preview, its poster, or a combination of these. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.29.htm#iqMovi440">QuickTime::GetTrackUsage()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>flags indicating the track's usage.</DL></DD></DL><HR><A NAME="setUsage(int)"><!-- --></A><H3>setUsage</H3><PRE>public void <B>setUsage</B>(int usage) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to specify whether a track is used in a movie, its preview, its poster, or a combination of these. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.29.htm#iqMovi437">QuickTime::SetTrackUsage()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>usage</CODE> - Contains flags that specify how the track is to be used.</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>This method returns the duration of a track. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.35.htm#iqMovi770">QuickTime::GetTrackDuration()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the duration of a track.</DL></DD></DL><HR><A NAME="getOffset()"><!-- --></A><H3>getOffset</H3><PRE>public int <B>getOffset</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to determine the time difference between the start of a track and the start of the movie that contains the track. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.35.htm#iqMovi776">QuickTime::GetTrackOffset()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the track's offset from the start of the movie</DL></DD></DL><HR><A NAME="setOffset(int)"><!-- --></A><H3>setOffset</H3><PRE>public void <B>setOffset</B>(int movieOffsetTime) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method modifies the duration of the empty space that lies at the beginning of the track, thus changing the duration of the entire track. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.35.htm#iqMovi773">QuickTime::SetTrackOffset()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>movieOffsetTime</CODE> - Specifies the track's offset from the start of the movie, and must be expressed in the time scale of the movie that contains the track.</DL></DD></DL><HR><A NAME="getLayer()"><!-- --></A><H3>getLayer</H3><PRE>public int <B>getLayer</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to retrieve a track's layer. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.32.htm#iqMovi653">QuickTime::GetTrackLayer()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the track's layer number.</DL></DD></DL><HR><A NAME="setLayer(int)"><!-- --></A><H3>setLayer</H3><PRE>public void <B>setLayer</B>(int layer) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to set a track's layer. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.32.htm#iqMovi649">QuickTime::SetTrackLayer()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>layer</CODE> - Specifies the track's layer number.</DL></DD></DL><HR><A NAME="getAlternate()"><!-- --></A><H3>getAlternate</H3><PRE>public <A HREF="../../../quicktime/std/movies/Track.html">Track</A> <B>getAlternate</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows your application to determine all the tracks in an alternate group. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.39.htm#iqMovi840">QuickTime::GetTrackAlternate()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Track object of the next track in the group.</DL></DD></DL><HR><A NAME="setAlternate(quicktime.std.movies.Track)"><!-- --></A><H3>setAlternate</H3><PRE>public void <B>setAlternate</B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> alternateT) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows your application to add tracks to or remove tracks from alternate groups. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.39.htm#iqMovi837">QuickTime::SetTrackAlternate()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alternateT</CODE> - Controls whether the function adds the track to a group or removes it from a group.</DL></DD></DL><HR><A NAME="getVolume()"><!-- --></A><H3>getVolume</H3><PRE>public float
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -