GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Java Mobile Media API - Wikipedia
The Mobile Media API (MMAPI) is an API specification for the Java ME platform CDC and CLDC devices such as mobile phones. Depending on how it is implemented, the APIs allow applications to play and record sounds and video, and to capture still images. MMAPI was developed under the Java Community Process as JSR 135. Programming conceptsThe Multimedia Java API is based around four main types of classes in the Java ME programmers wishing to use JSR 135 would first make use of the static methods of the
The MIME type is optional, and is inferred from the data passed in if not supplied. The
(Typically, the The set of controls implemented by a
(Others may be defined in JSR 234 (Advanced Multimedia Supplements). A subset of JSR 135 is defined in JSR 118 (MIDP 2.0). Player lifecycleRegardless of the protocol or media type involved, the
ImplementationsAs with most Java ME specifications, implementations differ despite the best efforts of the specification authors to ensure consistency. Two obvious areas for differences are in the controls supported, and in the acceptable URI types in the first place. More obscure areas are whether mixing is supported; many games would like to play a MIDI music track and layer PCM sound effects on top. Another source of extreme variance is in performance. For example, if an HTTP clip is requested, at what point does the clip get downloaded? The specification recognises this by providing two Symbian OS contains a very complete implementation of JSR 135, but even this is highly dependent on the underlying multimedia capabilities of the device, and some device manufacturers may choose not to expose the more obscure parts of Java ME such as recording. Implementation consistency is ensured by forcing all implementations to pass the Java Technology Compatibility Kit (TCK). This ensures that each supported URI schema, MIME type and Control is tested, but does not test every permutation of these optional parts. Code examplepackage org.wikipedia.example; import javax.microedition.midlet.*; import javax.microedition.media.*; public class SimplePlayer extends MIDlet { protected void destroyApp(boolean b) throws MIDletStateChangeException { // implementation } protected void pauseApp() { // implementation } protected void startApp() throws MIDletStateChangeException { try { String url = "http://upload.wikimedia.org/wikipedia/commons/a/a0/Bass_sample.mid"; Player player = Manager.createPlayer(url); player.start(); } catch (Exception e) { e.printStackTrace(); } } } See alsoBibliography
External links | ||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |