📄 package-summary.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 Fri Sep 27 14:47:28 CDT 2002 --><TITLE>Mobile Information Device Profile 2.0: Package javax.microedition.media</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 CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.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><strong>MIDP 2.0</strong></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/microedition/lcdui/game/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../../javax/microedition/media/control/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><H2>Package javax.microedition.media</H2>The MIDP 2.0 Media API is a directly compatible building block of theMobile Media API (JSR-135) specification.<P><B>See: </B><BR> <A HREF="#package_description"><B>Description</B></A><P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Interface Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Control.html"><I>Control</I></A></B></TD><TD>A <code>Control</code> object is used to control some media processing functions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Controllable.html"><I>Controllable</I></A></B></TD><TD><code>Controllable</code> provides an interface for obtaining the <code>Control</code>s from an object like a <code>Player</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Player.html"><I>Player</I></A></B></TD><TD><code>Player</code> controls the rendering of time based media data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="PlayerListener.html"><I>PlayerListener</I></A></B></TD><TD><CODE>PlayerListener</CODE> is the interface for receiving asynchronous events generated by <code>Players</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Manager.html">Manager</A></B></TD><TD><code>Manager</code> is the access point for obtaining system dependent resources such as <code>Players</code> for multimedia processing.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Exception Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="MediaException.html">MediaException</A></B></TD><TD>A <code>MediaException</code> indicates an unexpected error condition in a method.</TD></TR></TABLE> <P><A NAME="package_description"><!-- --></A><H2>Package javax.microedition.media Description</H2><P>The MIDP 2.0 Media API is a directly compatible building block of theMobile Media API (JSR-135) specification. The use of this buildingblock is intended for J2ME<sup><font size=-1>TM</font></sup> profilesaiming to include sound support in the specification, whilemaintaining upwards compatibility with the full Multimedia API. Suchspecification example is MIDP 2.0 (JSR-118). The development of thesetwo interoperable API's enables seamless sound and multimedia contentcreation across the J2ME<sup><font size=-1>TM</font></sup> range ofdevices using the same API principles.<h3>Introduction</h3><blockquote>J2ME<sup><font size=-1>TM</font></sup> devices range from cellphones with simple tone generation to PDAs and Web tablets with advancedaudio and video rendering capabilities. To accommodate diverse configurationsand multimedia processing capabilities, an API with a high level of abstractionis needed. The goal of the MMAPI Expert Group work has been to addressthis wide range of application areas, and the result of the work is a proposalof two API sets:<ul><li>Mobile Media API (JSR 135)</li><li>MIDP 2.0 Media API</li></ul>The first API is intended for J2ME<sup><font size=-1>TM</font></sup> deviceswith advanced sound and multimedia capabilities, including powerful mobilephones, PDAs, and set-top boxes, for example. The latter API is a directlycompatible subset of the Multimedia API, and is intended for resource-constraineddevices such as mass-market mobile devices (running MIDP 2.0). Furthermore,this subset API can be adopted to other J2ME<sup><font size=-1>TM</font></sup>profiles requiring sound support. In the following, a more detailed descriptionof the background and requirements of the building block API is given.</blockquote><h2><font size=+0>Background of the Media API</font></h2><blockquote>Some J2ME<sup><font size=-1>TM</font></sup> devices are very resource constrained.It may not be feasible for a device to support a full range of multimediatypes, such as video on some cell phones. As a result, not all devicesare required to support the full generality of a multimedia API, such asextensibility to support custom protocols and content types.<p>The proposed builidng block subset API has been designed to meet theabove constraints. This proposed building block fulfills the requirementsset by the MIDP 2.0 Expert Group. These requirements include:<ul><li>Low footprint audio playback<li>Protocol and content format agnostic<li>Supports tone generation<li>Supports general media flow controls: start, stop, etc.<li>Supports media-specific type controls: volume etc.<li>Supports capability query</ul>This subset differs from the full Mobile Media API in the following ways:<ul><li>It is audio-only. It excludes all Controls specific to video or graphics.<li>It does not support custom protocols via custom DataSources. Thejavax.microedition.media.protocolpackage (DataSource) is excluded.</ul><p>It is important to note that the building block subset used in MIDP2.0 is a proper subset of the full Mobile Media API and is fully forwardcompatible. In order to get the full Mobile Media API functionality intoMIDP 2.0 one needs to only implement the additional classes and methodsfrom that API.</blockquote><h3>Basic Concepts</h3><blockquote>The proposed audio building block system constists of threemain parts.<blockquote><li><tt>Manager</tt></li><li><tt>Player</tt></li><li><tt>Control</tt></li></blockquote>The<tt> Manager</tt> is the top level controller of audio resources. Applicationsuse <tt>Manager</tt> to request
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -