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
1
vote
1 answer

Flv Decoder in J2ME for playing Youtube videos

I am looking for playing flv files using J2ME. Is there any possibility for doing so? Is there any other way to play youtube videos through J2ME?
1
vote
3 answers

J2me application out of memory exception on multiple time file play

In my j2me application i have to play a small sound file each times user click on an item. But the issues is when i play sound file multiple times like after 10-14 times it gives me out of memory exception. Although i release the player each time i…
user1001084
  • 115
  • 1
  • 10
1
vote
1 answer

play file wav j2me - IllegalArgumentException at Manager.createPlayer()

I got problem about play wav file in my application. This is my error: java.lang.IllegalArgumentException at javax.microedition.media.Manager.createPlayer(), bci=8 at Tajwid.Tajwid.run(Tajwid.java:649) at…
Paijo S Kom
  • 61
  • 1
  • 6
1
vote
1 answer

Mp3 Streaming Using Player Switching

I am developing a sample application which can play shoutcast mp3 streams (Developing for S40 platforms, CLDC 1.1, MIDP 2.0). I am using two players switching for continues play back. I used the below logic for streaming. Buffer enough chunks Start…
MobDev
  • 1,489
  • 1
  • 17
  • 26
1
vote
0 answers

How to produce the loudest sound possible on a J2ME phone?

I have a midlet that upon discovering something displays some information, vibrates, flashes the screen, and makes a sound - all to get the user's attention. The problem is that the sound is not loud enough. how do i make the phone produce the…
inor
  • 2,781
  • 2
  • 32
  • 42
1
vote
0 answers

Seekbar and Seek functionality in J2ME

How to design seekbar and its functionality for Video/Audio Player in J2ME? I've tried with Slider Component in LWUIT but it's not working perfectly. Used Sample piece of code from WTK samples but it's too tough to design other components if we use…
Vijay YD
  • 514
  • 1
  • 4
  • 15
0
votes
2 answers

How to pause and play a J2ME audio player streaming with RTP

Here is how I try to play an audio streaming from a server over RTP. try { String url = "rtp://..."; Player p = Manager.createPlayer(url); p.realize(); VideoControl video = (VideoControl) p.getControl("VideoControl"); …
Débora
  • 5,816
  • 28
  • 99
  • 171
0
votes
0 answers

MediaPlayer.realize() takes too much time in the Samsung Champ Duos

   Samsung Champ Duos I faced worried problem. create media player application.    But it takes too much time in player.realize(); and application gets hung. In Samsung Wave II it works fine. How to resolve this problem of player.realize in j2ME…
Megha
  • 1,581
  • 2
  • 18
  • 33
0
votes
1 answer

Unable to capture picture using camera in J2ME Polish?

I am developing a Mobile Application in J2ME. Now I am converting it into J2ME Polish. In my application, I capture a picture using camera in mobile phone. It works fine in J2ME. But it does not work fine in J2ME Polish. I cannot resolve it. The…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0
votes
2 answers

j2me + javax.microedition.midlet.MediaException:Sounds not allowed

I am trying to Play MP3 and getting unexpected errors. I have tested my app before 3 days which was working perfect on my device but now even that same jar file is giving me following error. javax.microedition.midlet.MediaException:Sounds not…
Mihir Palkhiwala
  • 2,586
  • 3
  • 37
  • 47
0
votes
1 answer

can HTC diamond support MMAPI using j2me

I wanted to let my j2me project have the ability to take picutre using MMAPI(JSR135) So I check my HTC Diamond with the following code import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import…
fr33m4n
  • 542
  • 2
  • 13
  • 31
0
votes
1 answer

j2me audio player

I created a audio player using following code. try { InputStream is = getClass().getResourceAsStream("bell.wav"); player = Manager.createPlayer(is, "audio/X-wav"); player.realize(); player.prefetch(); …
Tharanga
  • 117
  • 3
  • 10
0
votes
1 answer

Implement JSR135 for JVM using on linux arm device

I'm porting a JVM to my linux arm set-top box. I've already built the phoneME Advance successfully for it and can run a midlet game well. But it couldn't play sound, so I think maybe JSR135 is needed. Does anyone have the experience on how to…
alex
  • 21
  • 1
  • 4
0
votes
2 answers

Unknown NullPointerException when creating simple player

I am trying to write a simple player but on running this code, it throws a NullPointerException. try { player = Manager.createPlayer("C:\\Users\\Admin\\Desktop\\Movie_0001.3gp"); player.realize(); VideoControl…
Henry
  • 91
  • 1
  • 5
0
votes
1 answer

MediaException: Cannot create DataSoruce for capture://audio on Samsung

I'm writting midlet that captures audio on mobile. System.getProperty("supports.audio.capture"); - returns true Manager.getSupportedContentTypes("capture"); - returns "audio/amr" My mobile is Samsung SGH-G800 and according to its spec supports…