📄 media.html
字号:
<BR> This method changes the file that the specified media identifies as the location for its data storage.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setDataRefAttributes(int, int)">setDataRefAttributes</A></B>(int index, int dataRefAttributes)</CODE><BR> No QTDocumentation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setDefaultDataRefIndex(int)">setDefaultDataRefIndex</A></B>(int index)</CODE><BR> This method allows your application to determine the default index for a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setHandler(quicktime.std.movies.media.MediaHandler)">setHandler</A></B>(<A HREF="../../../../quicktime/std/movies/media/MediaHandler.html">MediaHandler</A> mH)</CODE><BR> This method allows you to assign a specific media handler to a track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setInputMap(quicktime.std.movies.AtomContainer)">setInputMap</A></B>(<A HREF="../../../../quicktime/std/movies/AtomContainer.html">AtomContainer</A> inputMap)</CODE><BR> This method allows you to set a new input map for a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setLanguage(int)">setLanguage</A></B>(int language)</CODE><BR> This method sets a media's language or region code.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setPlayHints(int, int)">setPlayHints</A></B>(int flags, int flagsMask)</CODE><BR> This method allows your application to provide information to the Movie Toolbox that can influence playback of a single media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setPreferredChunkSize(int)">setPreferredChunkSize</A></B>(int maxChunkSize)</CODE><BR> This method allows your application to specify a preferred chunk size for the media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setPropertyAtom(quicktime.std.movies.AtomContainer)">setPropertyAtom</A></B>(<A HREF="../../../../quicktime/std/movies/AtomContainer.html">AtomContainer</A> propertyAtom)</CODE><BR> No QT Documentation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setQuality(int)">setQuality</A></B>(int quality)</CODE><BR> This method sets a media's quality level value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setSampleDescription(int, quicktime.std.movies.media.SampleDescription)">setSampleDescription</A></B>(int index, <A HREF="../../../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A> descH)</CODE><BR> This method lets you change the contents of a particular sample description of a specified media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setShadowSync(int, int)">setShadowSync</A></B>(int frameDiffSampleNum, int syncSampleNum)</CODE><BR> This method creates an association between the indicated frame difference sample and a specified self-contained sample in a given media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setTimeScale(int)">setTimeScale</A></B>(int timeScale)</CODE><BR> This method allows your application to set a media's time scale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../quicktime/std/movies/media/SampleTimeInfo.html">SampleTimeInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#timeToSampleNum(int)">timeToSampleNum</A></B>(int time)</CODE><BR> This method allows you to find the sample that contains the data for a specified time.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A>, <A HREF="../../../../quicktime/QTObject.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</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="newFromType(int, quicktime.std.movies.Track, int, quicktime.std.movies.media.DataRef)"><!-- --></A><H3>newFromType</H3><PRE>public static <A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A> <B>newFromType</B>(int mediaType, <A HREF="../../../../quicktime/std/movies/Track.html">Track</A> track, int timeScale, <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A> dataRef) throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a media struct for the specified Track object. The type of media object that is created is determined by the mediaType argument. If a media class is not found that corresponds with the specified media type then an instance of GenericMedia is returned. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.2f.htm#iqMovi593">QuickTime::NewTrackMedia()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mediaType</CODE> - the type of media the track will or does contain<DD><CODE>itsTrack</CODE> - Specifies the Track object this media belongs to.<DD><CODE>timeScale</CODE> - Specifies the time scale of the new media.<DD><CODE>dataRef</CODE> - a DataRef object specifying the default data reference for this media. If there is no known dataRef then null can be passed in.</DL></DD></DL><HR><A NAME="fromTrack(quicktime.std.movies.Track)"><!-- --></A><H3>fromTrack</H3><PRE>public static <A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A> <B>fromTrack</B>(<A HREF="../../../../quicktime/std/movies/Track.html">Track</A> theTrack) throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns a Media class that corresponds to the media that contains a track's data. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.38.htm#iqMovi820">QuickTime::GetTrackMedia()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>theTrack</CODE> - specifies the track to get the media from<DT><B>Returns:</B><DD>a Media subclass</DL></DD></DL><HR><A NAME="getTrackMedia(quicktime.std.movies.Track)"><!-- --></A><H3>getTrackMedia</H3><PRE>public static <A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A> <B>getTrackMedia</B>(<A HREF="../../../../quicktime/std/movies/Track.html">Track</A> theTrack) throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Returns a Media class that corresponds to the media that contains a track's data. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.38.htm#iqMovi820">QuickTime::GetTrackMedia()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>theTrack</CODE> - specifies the track to get the media from<DT><B>Returns:</B><DD>a Media subclass</DL></DD></DL><HR><A NAME="getSampleDescription(int)"><!-- --></A><H3>getSampleDescription</H3><PRE>public <A HREF="../../../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A> <B>getSampleDescription</B>(int index) throws <A HREF="../../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method allows you to retrieve a sample description from a media. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.3c.htm#iqMovi904">QuickTime::GetMediaSampleDescription()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Specifies the index of the sample description to retrieve.<DT><B>Returns:</B><DD>a SampleDescription object for the specified index.</DL></DD></DL><HR><A NAME="setSampleDescription(int, quicktime.std.movies.media.SampleDescription)"><!-- --></A><H3>setSampleDescription</H3><PRE>public final void <B>setSampleDescription</B>(int index, <A HREF="../../../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A> descH) throws <A HREF="../../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method lets you change the contents of a particular sample description of a specified media. <BR><BR><b>QuickTime::SetMediaSampleDescription()</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Specifies the index of the sample description to be changed.<DD><CODE>descH</CODE> - Specifies the handle to the sample description.</DL></DD></DL><HR><A NAME="getDataHandler(int)"><!-- --></A><H3>getDataHandler</H3><PRE>public final <A HREF="../../../../quicktime/std/movies/media/DataHandler.html">DataHandler</A> <B>getDataHandler</B>(int index) throws <A HREF="../../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>This method allows you to determine a media's data handler. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.46.htm#iqMovi1092">QuickTime::GetMediaDataHandler()</a> </b><BR><BR></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -