Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Comparing J2ME Multimedia Options

This article presents the latest developments in MMAPI: the new security considerations raised in MMAPI 1.1, the differences between MMAPI and the MIDP 2.0 Media API, J2ME Wireless Toolkit 2.2 support for MMAPI, and JSR 234, Advanced Multimedia Supplement

Tutorial Details:

The Mobile Media API (MMAPI) is an optional package within the Java 2 Platform, Micro Edition (J2ME), that provides a standard API for rendering and capturing time-based media, such as audio tracks and video clips. Developed within the Java Community process as JSR 135, MMAPI was designed to be flexible and platform-independent; it makes no assumptions about media formats, protocols, or features supported by various devices. MMAPI is already making its way into mobile devices; the Nokia 3650, for example, includes an implementation. Other devices that support MMAPI can be found at "J2ME Devices."

This article services the latest developments in MMAPI: the new security considerations raised in MMAPI 1.1, the differences between MMAPI and the MIDP 2.0 Media API, J2ME Wireless Toolkit 2.2 support for MMAPI, and JSR 234, Advanced Multimedia Supplements. If you're looking for a tutorial on MMAPI as well as code samples, for an audio/video player, for instance, see the articles "The J2ME Mobile Media API" and "Taking Pictures With MMAPI."



Overview of MMAPI Components
MMAPI has four main components:


Player is used to play content. It provides methods to manage a Player's life-cycle, and to manage various playback features.
Manager is the overall controller of the media. It creates Players.
DataSource represents a protocol handler, usually not visible to the application developer. The protocol handler reads the media data and fetches it to Player for playback.
Control controls various features of Player and playback operations.

Supported MMAPI Controls
MMAPI has 12 controls, in the package javax.microedition.control:


MetaDataControl retrieves metadata information from the media.
MIDIControl provides access to MIDI rendering and transmitting devices.
GUIControl represents a control that provides a UI component.
PitchControl raises or lowers the playback pitch without changing the playback speed.
RateControl controls the playback rate.
TempoControl controls the tempo of a MIDI song.
VolumeControl controls the volume.
VideoControl controls the display of visual content.
FramePositioningControl enables precise positioning to a video frame.
RecordControl records what is currently being played by the Player.
StopTimeControl enables an application to define a preset stop time for a Player.
ToneControl is an interface that enables playback of user-defined tone sequences.

Be aware that not all MMAPI implementations support all types of controls. You can find out what a device does support by calling System.getProperty(String key). The specification defines these properties:


microedition.media.version returns a string representing the version of MMAPI implemented, "1.0" or "1.1" if MMAPI is supported, or null if it isn't.
supports.mixing returns true if mixing is supported, false if it isn't.
supports.audio.capture returns true if audio capture is supported, false if it isn't.
supports.video.capture returns true if video capture is supported, false if it isn't.
supports.recording returns true if recording is supported, false if it isn't.
audio.encodings returns a string representing the supported audio capture formats, or null if audio capture isn't supported.
video.encodings returns a string representing the supported video capture formats, or null if video capture isn't supported.
video.snapshot.encodings returns a string representing the supported image capture formats, or null if video snapshot isn't supported.
streamable.contents returns a string representing the supported streamable content types, in MIME syntax.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Comparing J2ME Multimedia Options

View Tutorial:
Comparing J2ME Multimedia Options

Related Tutorials:

Displaying 1 - 50 of about 491 Related Tutorials.

Player Class in J2ME
; Creating Multimedia Sound Using Player Class In J2ME, player class is used... Player Class in J2ME Player Class in J2ME... application to create multimedia sounds. It's required to import
 
J2ME Tutorial
J2me Tutorial J2ME Tutorial  ...;  J2ME Hello World Example This is the simple hello world...;    Creating MIDlet Application For Login in J2ME
 
J2ME Tutorial
J2me Tutorial J2ME Tutorial  ...;  J2ME Hello World Example This is the simple hello world...;    Creating MIDlet Application For Login in J2ME
 
Comparing Two Numbers
Comparison in Java, Java Compare Numbers, Comparing Two Numbers in Java Comparing Two Numbers    ... simple example of Java that teaches you the method of comparing two numbers
 
Comparing two Dates in Java
Comparing two Dates in Java, Dates in Java Comparing two Dates in Java       ... to compare two date objects using java.util.Date class. For comparing dates, we
 
Comparing two Dates in Java with the use of before method
Comparing two Dates in Java with the use of before method, before method in java, before method Comparing two Dates in Java... of comparing dates you have seen how to use after() method in java class for comparing
 
J2ME
; EclipseME EclipseME is an Eclipse plugin to help develop J2ME...;   J2ME Java Editor Extends Eclipse Java Editor support ing J2ME Polish directives, variables and styles. Edit java files using
 
iPhone
is a multi-touch smartphone that has successfully combined multimedia, email, business... customisable options and the iPhone 3G is no different, rather only better.  
 
Comparing Arrays
Comparing Arrays,Java Comparing Arrays,Comparing Arrays Using Java Util Comparing Arrays : Java Util               
 
String Comparison
the characters in the strings. Comparing objects vs. primitive types [to be supplied] Comparing Strings: ==, .equals(), .compareTo(), ... To compare Strings...> Comparing without regard to case [to be supplied] Copyleft 2003
 
J2ME Books
J2ME Books J2ME Books    ...; Free J2ME Books J2ME programming camp will show...; The Enterprise J2ME This book helps
 
J2ME Read File
J2ME Read File J2ME Read File  ...; In this J2ME application, we are going to read the specified file. This example shows... by the help of  j2me midlet.           
 
==, .equals(), and compareTo()
. Comparing Object references with the == and != Operators The two operators that can be used with object references are comparing for equality.... Comparing Object values with the equals() Method Use the equals() method
 
Comparing the File Dates
Date Comparison in Java, Java Comparing Strings, File Date Comparison Comparing the File Dates    ... will be used for comparing the files. Declare a method comparing which will check when
 
J2ME Java Editor plugin
J2ME Java Editor plugin J2ME Java Editor plugin...;   Extends Eclipse Java Editor support ing J2ME...: * Autocompletion of J2ME Polish directives. * Autocompletion of J2ME Polish variables
 
J2ME Current Date And Time
J2ME Current Date And Time J2ME Current Date...;    This is a simple J2ME form example, that is going to show the current date and time on the screen. Like core Java J2ME too use
 
Comparing Dates in Java
Comparing Dates in Java,How to Compare Two Dates,Compare Date With Current Date Example Comparing Dates in Java... development. You can easily use the code for comparing dates. Program Description
 
Comparing Log Levels in Java
Comparing Log Levels,Java Log Levels Example,Log Levels Code Using Java Util Comparing Log Levels in Java               
 
Comparing Log Levels in Java
Comparing Log Levels,Java Log Levels Example,Log Levels Code Using Java Util Comparing Log Levels in Java               
 
Comparing Two String with
Comparing Two String with <c:if> Comparing Two String with <c:if>                   
 
Draw Line in J2me
Draw Line in J2me Draw Line in J2me...; In this example we are going to show you how to draw a line using J2ME. Please go through the below given J2ME syntax that includes all the package, methods
 
Draw Rectangle in J2ME
Draw Rectangle in J2ME Draw Rectangle in J2ME...; In this series of J2ME examples and tutorials, we have introduced you... will learn about creating rectangles in J2ME. Please go through the following methods
 
J2ME Draw String
J2ME Draw String J2ME Draw String               .... Here in this example, we are going to show the string in J2ME. For that we
 
List in J2ME
List in J2ME List in J2ME              ...; J2ME Canvas List Example will explain you, how to create list of items
 
J2ME Form Class
J2ME Form Class J2ME Form Class...; In this J2ME Extends Form example, we are going to discuss about form... into form in J2ME. The application will look like as follow... In this image, "My
 
J2ME Item State Listener Example
J2ME Item State Listener Example J2ME Item State Listener Example         ... to implement the ItemStateListener interface in the j2me midlet
 
Appending Image into the J2ME Form
Appending Image into the J2ME Form Appending Image into the J2ME Form       ... are going to add image into the J2ME Form. The syntax of adding image is given
 
J2ME Draw Triangle
J2ME Draw Triangle J2ME Draw Triangle...;  As you already aware of the canvas class and it's use in J2ME... application will look like as follow... Source code to draw a triangle in J2ME file
 
Comparing XML with HTML

 
J2ME Crlf Example
J2ME Crlf Example J2ME Crlf Example            ...; The given J2ME Midlet, discuss about how to show the messages
 
J2ME Jobs in India at Rose India
J2ME Jobs in India ,J2ME Jobs in India at Rose India,J2ME Jobs J2ME Jobs in India at Rose India   .... We are involved in the development of mobile games based on j2me technologies
 
J2ME Event Handling Example
J2ME Event Handling Example J2ME Event Handling...;   In J2ME programming language, Event Handling are used... on the mobile screen. As you know in J2ME there are two MIDP user interface APIs
 
J2ME Command Class
J2ME Command Class J2ME Command Class...;  In the given J2ME Command Class example, we have set the various..., 2, 3 etc. In J2ME commands are used for keeping information of the commands
 
Draw arc in J2ME
Draw arc in J2ME Draw arc in J2ME               ...; The given example is going to draw an arc using canvas class of J2ME. You can also
 
Custom Item in J2ME
Custom Item in J2ME Custom Item in J2ME...; In J2ME applications, Custom Items can be created by programmers and they can... J2ME applications. In this Midlet, we have tried to do the same thing. 
 
J2ME Thread Processing Example
J2ME Thread Processing Example J2ME Thread Processing Example          ... and how thread works in J2ME application. An application can run multiple
 
J2ME Canvas Repaint
J2ME Canvas Repaint J2ME Canvas Repaint            ...;  In J2ME repaint is the method of the canvas class, and is used
 
J2ME Command Class
J2ME Command Class J2ME Command Class...;  In the given J2ME Command Class example, we have set the various..., 2, 3 etc. In J2ME commands are used for keeping information of the commands
 
Text Example in J2ME
Text Example in J2ME Text Example in J2ME...; In J2ME programming language canvas class is used to paint and draw... such kind of graphics in the J2ME application. J2ME Source Code "
 
J2ME Kxml Connection Example
J2ME Kxml Connection Example J2ME Kxml Connection Example           ... develop a J2ME application that a user can connect to the xml file from
 
Radio Button in J2ME
Radio Button in J2ME Radio Button in J2ME           ... to demonstrate, how to create the radio button in J2ME using Midlet. The radio
 
J2ME Display Size Example
J2ME Display Size Example J2ME Display Size Example          ...;    In the given J2ME Midlet example, we are going
 
J2ME Canvas KeyPressed
J2ME Canvas KeyPressed J2ME Canvas KeyPressed             ... in J2ME using canvas class. After going through the given example, you will be able
 
Building a J2ME sliding menu with text and images(part-2)
Building a J2ME sliding menu with text and images(part-2) Building a J2ME sliding menu with text and images(part-2...; In the given J2ME Menus example, we have explained to create two different
 
Comparing two Dates in Java with the use of after method
Comparing two Dates in Java with the use of after method, after method in java, after method Comparing two Dates in Java... to compare two date objects in Java programming language. For comparing the date
 
J2ME Animation using repaint( ) method
J2ME Animation using repaint( ) method J2ME Animation using repaint( ) method     ...;        In this part of J2ME Image
 
List in J2ME
List in J2ME List in J2ME                          
 
Linux Books
compiler options for optimization and debugging. This book does not attempt to teach... your own custom path. You could build an office workstation, a multimedia desktop..., no options exercised. (Due to an oversight in final production, the copyright
 
J2ME Kxml Example
J2ME Kxml Example J2ME Kxml Example...; J2ME Kxml Example This is the simple kxml...;    J2ME Kxml Connection Example
 
J2ME Draw Triangle, Rectangle, Arc, Line Round Rectangle Example
J2ME Draw Triangle, Rectangle, Arc, Line & Round Rectangle Example J2ME Draw Triangle, Rectangle, Arc, Line Round Rectangle...;     In this serious of J2ME tutorial, we are going
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.