Questions tagged [mmapi]

Mobile Media API is a Java ME specification, JSR 135, that supports multimedia applications on J2ME-enabled devices.

The Mobile Media API (MMAPI) is an optional package that supports multimedia applications on J2ME-enabled devices. This standard Java specification, defined by the Java Community Process (JCP) in JSR 135, is highly flexible. It has been designed to run with any protocol and format; for example, it doesn't specify that the implementation must support particular transport protocols such as HTTP or Real-Time Transport Protocol (RTP), or media formats such as MP3, MIDI, or MPEG-4

Overview of MMAPI

MMAPI has been designed to run on any J2ME-based virtual machine, including the CDC and CLDC VMs. Sun's reference implementation runs on CLDC/MIDP for Windows 2000. The J2ME Wireless Toolkit comes with the MMAPI.

MMAPI's developers designed into it the following features:

  • Support for Tone Generation, Playback, and Recording of Time-Based Media: The package supports any time-based audio or video content.
  • Small Footprint: MMAPI works within the strict memory limits of CLDC devices.
  • Protocol- and Content-Agnostic: The API is not biased towards any specific content type or protocol.
  • Subsettable: Developers can limit support to particular types of content, basic audio for example.
  • Extensible: New features can be added easily without breaking older functionality. More importantly, additional formats can be easily supported, and the framework is in place for additional controls.
  • Options for Implementers: The API offers features for different purposes. The API is designed to allow implementers to leave some features unimplemented if they cannot be supported.

Resources

  • Specification
  • API documentation
  • Introductory tutorial at SDN: The J2ME Mobile Media API

    ...This article provides a technical overview of MMAPI's architecture and APIs, followed by a tutorial in which sample code demonstrates how MMAPI can be used to build multimedia-rich wireless Java applications. A complete media player is developed, and steps for testing it are provided...

79 questions
2
votes
0 answers

Implementing Custom Codec with JSR-135 MMAPI

Is it possible to implement a custom codec decoder and play a media file using JSR135? Actually I am interested in playing back a custom media file in J2ME. I think JSR135 is a good starting point but I am open to other suggestions. Thanks. Update I…
Szere Dyeri
  • 14,916
  • 11
  • 39
  • 42
2
votes
1 answer

J2me Player, Play MP3 Files One After The Other

I am unable to play an MP3 file one after the other, when 1 file finishes playing the other file needs to start. I am only able to start playing 1 file, when I put code to start the next file it just does nothing. For some reasons I cannot use…
kjhkjh
  • 21
  • 2
2
votes
1 answer

How to take a Snapshot in J2me with the MMAPI while using LWUIT

I want to make an application that takes a snapshot from Camera and send it to the server. I can do this pretty easily in Highlevel UI using MediaPlayer but it seem that I can't use the same code in LWUIT. VideoControl vc; Item videoItem = (Item)…
Chan
  • 2,601
  • 6
  • 28
  • 45
2
votes
2 answers

Does MIDP 2.0 say that this phone has at least GPRS connectivity?

Does MIDP 2.0 say that this phone has at least GPRS capability? I need to come up with a list of phones which has MIDP 2.0, and GPRS capability.
Sukitha Udugamasooriya
  • 2,268
  • 1
  • 35
  • 56
2
votes
1 answer

Video player using j2me to play mp4 from a directory

I want to develop a j2me application that will play a video file(.mp4) by selecting a particular directory on mobile phone(nokia s40 series). How do i go about this?can anyone help me to initiate the above said process.
Ishan
  • 4,008
  • 32
  • 90
  • 153
2
votes
1 answer

Don't let the display go to stand-by in JavaME

Im streaming video to my MIDLET. And while it is playing it, after 20 seconds (depends on a system setting) display on the phone goes to stand-by mode. How can I prevent this so I can watch the video for 5 minutes for example without having to tap…
Cipi
  • 11,055
  • 9
  • 47
  • 60
2
votes
1 answer

Player gets stuck after 50 sec video playback in Blackberry Simulator

I am using blackberry jde 4.6 to test my application in the blackberry 9000 simulator. Some times before I run one .3gp video file in my application. My application consists of one player and two buttons with the name start and stop. If I click the…
Kumar
  • 5,469
  • 20
  • 64
  • 87
2
votes
1 answer

In J2ME After creating a player with one audio file, is that possible to pass an another audio file to same instance of player to play

After creating a player by using method this code: player = Manager.createPlayer(getClass().getInputStream("/sound.wav"), "audio/x-wav") Is it possible to pass an audio file to same instance of player? I tried by doing this: player = (Player)…
Rahul More
  • 615
  • 3
  • 13
  • 41
2
votes
2 answers

J2ME: Prefetch error -5. MediaException

I get a MediaException (Prefetch error: -5) when executing the following code on a Nokia N73. It runs fine in the emulator and I have tried the same thing before on the same phone successfully. The only difference now is that I am using NetBeans to…
Ries
  • 2,844
  • 4
  • 32
  • 45
2
votes
1 answer

Java Me video player realize error with http - MediaException

I'm using the below code (references from, http://www.java-tips.org/java-me-tips/midp/playing-video-on-j2me-devices.html). It fails at 'realize()', with the javax.microedition.media.MediaException, "Unable to create native player". What is the…
Karuna Sorate
  • 163
  • 5
  • 15
2
votes
2 answers

Not able to capture an image using Nokia Mobile but in Computer application works fine?

I am making an application in which user will be able to use camera, capture and save that image to C drive, and i am also able to perform all these when i use this application with my PC. But whenever i use this application in mobile Like Nokia…
user1369219
  • 39
  • 1
  • 4
2
votes
0 answers

Image Capturing is not working with Nokia C2-01,02,03

I am able to Capture and save image local C Drive to my PC, but whenever I want to capture an image using Nokia C2-01,01,03 then Camera command is working but Capture command is not working. What change I am required to make this one useful for me?…
2
votes
1 answer

handle external volume keys in J2me

Can you please give me some idea about why S40 device does not get external volume key events? I have this phone: Nokia 5130 XpressMusic - Series 40 5th Edition, Feature Pack 1 Nokia 3110 Classic. - Series 40 3rd Edition, Feature Pack 2 Both…
PrashantAdesara
  • 1,897
  • 3
  • 22
  • 41
2
votes
1 answer

how to get default video control of native video player in lwuit?

Below is the code that I have used to play video in native video player. But I am not getting any default control like stop, pause, play. What I am missing over here? If my code is wrong then what is the right code for that? vc =…
dhrut
  • 147
  • 1
  • 9
2
votes
2 answers

Camera snapshot in J2ME Null Pointer Exception

I've spent long on this but no success yet. In my application to capture image and send to the server, I get NullPointerException below; java.lang.NullPointerException: 0 at Files.CameraMIDlet.snap(CameraMIDlet.java:120) at…
Kirungi
  • 57
  • 1
  • 6