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

📄 media.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getDataSize(int, int)">getDataSize</A></B>(int&nbsp;startTime,            int&nbsp;duration)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to determine the size, in bytes, of the sample data in a media segment.</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="../../../../quicktime/std/movies/media/Media.html#getDuration()">getDuration</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the duration of a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/MediaHandler.html">MediaHandler</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getHandler()">getHandler</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to obtain a reference to a media handler component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/HandlerInfo.html">HandlerInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getHandlerDescription()">getHandlerDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to retrieve information about a media handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/AtomContainer.html">AtomContainer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getInputMap()">getInputMap</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns you the input map of the media.</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="../../../../quicktime/std/movies/media/Media.html#getLanguage()">getLanguage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns 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>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getModificationTime()">getModificationTime</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a media's modification date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/TimeInfo.html">TimeInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getNextInterestingTime(int, int, float)">getNextInterestingTime</A></B>(int&nbsp;interestingTimeFlags,                       int&nbsp;time,                       float&nbsp;rate)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method searches for times of interest in a media.</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="../../../../quicktime/std/movies/media/Media.html#getPlayHints()">getPlayHints</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to get information from the Movie Toolbox  that determines the current state of playback of a single media.</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="../../../../quicktime/std/movies/media/Media.html#getPlayHints(int, int)">getPlayHints</A></B>(int&nbsp;flags,             int&nbsp;flagsMask)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>these arguments are not used in this call see getPlayHints()</I></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="../../../../quicktime/std/movies/media/Media.html#getPreferredChunkSize()">getPreferredChunkSize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the preferred chunck size for the media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/AtomContainer.html">AtomContainer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getPropertyAtom()">getPropertyAtom</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the properties from a media handler.</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="../../../../quicktime/std/movies/media/Media.html#getQuality()">getQuality</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a media's quality level value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/MediaSample.html">MediaSample</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getSample(int, int, int)">getSample</A></B>(int&nbsp;maxSizeToGrow,          int&nbsp;time,          int&nbsp;maxNumberOfSamples)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a sample from a movie data file.</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="../../../../quicktime/std/movies/media/Media.html#getSampleCount()">getSampleCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to determine the number of samples in a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/SampleDescription.html">SampleDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getSampleDescription(int)">getSampleDescription</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to retrieve a sample description from a media.</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="../../../../quicktime/std/movies/media/Media.html#getSampleDescriptionCount()">getSampleDescriptionCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the number of sample descriptions in a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/SampleInfo.html">SampleInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getSampleReference(int, int)">getSampleReference</A></B>(int&nbsp;time,                   int&nbsp;maxNumberOfSamples)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to obtain reference information about samples that are stored in a movie data file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/SampleReferenceInfo.html">SampleReferenceInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getSampleReferences(int, int)">getSampleReferences</A></B>(int&nbsp;time,                    int&nbsp;maxNumberOfSamples)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method  allows your application to obtain reference information about samples that are stored in a movie data file.</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="../../../../quicktime/std/movies/media/Media.html#getShadowSync(int)">getShadowSync</A></B>(int&nbsp;frameDiffSampleNum)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the sample number of the shadow sync associated with a given frame difference sample 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="../../../../quicktime/std/movies/media/Media.html#getSyncSampleCount()">getSyncSampleCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to determine the number of samples in a media.</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="../../../../quicktime/std/movies/media/Media.html#getTimeScale()">getTimeScale</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to determine a media's time scale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/Track.html">Track</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getTrack()">getTrack</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to determine the track that uses a specified media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getTrackMedia(quicktime.std.movies.Track)">getTrackMedia</A></B>(<A HREF="../../../../quicktime/std/movies/Track.html">Track</A>&nbsp;theTrack)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a Media class that corresponds to the media that contains a track's data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/media/UserData.html">UserData</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#getUserData()">getUserData</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows your application to obtain access to a media's user data list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#loadIntoRam(int, int, int)">loadIntoRam</A></B>(int&nbsp;time,            int&nbsp;duration,            int&nbsp;flags)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method loads a media's data into memory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../quicktime/std/movies/media/Media.html">Media</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#newFromType(int, quicktime.std.movies.Track, int, quicktime.std.movies.media.DataRef)">newFromType</A></B>(int&nbsp;mediaType,            <A HREF="../../../../quicktime/std/movies/Track.html">Track</A>&nbsp;track,            int&nbsp;timeScale,            <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A>&nbsp;dataRef)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a media struct for the specified Track object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../quicktime/std/movies/TimeInfo.html">TimeInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#sampleNumToMediaTime(int)">sampleNumToMediaTime</A></B>(int&nbsp;logicalSampleNum)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to find the time at which a specified sample plays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setDataHandler(int, quicktime.std.movies.media.DataHandler)">setDataHandler</A></B>(int&nbsp;index,               <A HREF="../../../../quicktime/std/movies/media/DataHandler.html">DataHandler</A>&nbsp;dH)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method allows you to assign a data handler to a media.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../quicktime/std/movies/media/Media.html#setDataRef(int, quicktime.std.movies.media.DataRef)">setDataRef</A></B>(int&nbsp;index,           <A HREF="../../../../quicktime/std/movies/media/DataRef.html">DataRef</A>&nbsp;dataReference)</CODE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -