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
0
votes
1 answer

Sound issues on Blackberry 8330

It appears that on CDMA Blackberry 8330, almost every mp3 file I'm trying to play using J2ME, gets cut-of a few seconds before it's actual end. Does anybody has a clue?
Zamel
  • 692
  • 1
  • 10
  • 21
0
votes
1 answer

Issues regarding playing audio files in a JME midlet

I am making a midlet which is to be used to play out local audio files. It is obviously not working. I am getting a null reference on the "is" variable, in the code snippet shown below. 1. try{ 2. System.out.println("path: " + this.getClass()); 3.…
0
votes
1 answer

Controlling video playback (play, pause, forward, seekbar) on BlackBerry

Can anyone please help me to add video controls (play, pause, forward, seekbar) to my application?
harish
  • 1,755
  • 6
  • 22
  • 36
0
votes
2 answers

Playing a generated sound j2me

I have this code for Android, that plays a custom sound, it works fine: AudioTrack output = new AudioTrack(AudioManager.STREAM_MUSIC, baudRate, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_8BIT, bufferSize,…
ric
  • 72
  • 1
  • 9
0
votes
1 answer

Download and play video from web on Blackberry

I want to play video from a url in my application... I want to first stream the video and store the data in a buffer and then feed the data from the buffer to the player.
tek3
  • 2,095
  • 2
  • 20
  • 50
0
votes
1 answer

In J2ME How to find the capability of emulator to check whether it can play certain media file or not

In J2ME, How do I come to know that what is the capability of emulator to play certain media file though it is .mp3 or .wav or any other file I am using Netbeans with WTK emulators & also nokia SDK 1.1.0 emulator....
Rahul More
  • 615
  • 3
  • 13
  • 41
0
votes
1 answer

Trying to play audio on Nokia C3, results in : Failed to fetch media data

I am currently working on a project that uses Manager.createPlayer(InputStream is, String mimeType) to create an audio player. The audio player works perfectly on the emulator. On a Nokia C3 it is able to play an audio/mpeg track after the app…
Rikus Louw
  • 78
  • 7
0
votes
2 answers

Audio files not Playing in Blackberry

I'm trying to play a recorded wave file. While playing, an exception is thrown at the following statement: Player player = Manager.createPlayer(is, "audio/mpeg"); My entire code for playing the wave file is as follows: if…
iOSDev
  • 3,617
  • 10
  • 51
  • 91
0
votes
1 answer

PlayerListener MMAPI

when running the program, music still running but console don't print the messenge. Where is the problem? I don't use english well. Sorry. public class MultimediaSound extends MIDlet { public void startApp(){ try { Player…
bulubuloa
  • 597
  • 1
  • 10
  • 21
0
votes
1 answer

Voice or Audio player for .amr file in Java ME

I am working on audio recording in Nokia S40 series mobiles. I am able to record the message, but I am not able to play the recorded audio message. Can anyone help me how to code for voice player for recorded .amr audio files? Did any one come…
sam
  • 51
  • 5
0
votes
1 answer

How to stop sound/music in J2ME for S60

I am trying to stop sound when user exits the application by pressing Hang up key in Series 60. But the application goes to background and the sound still plays. I want to stop the sound when user clicks the Hang up key of the device. I called the…
jayesh
  • 11
  • 6
0
votes
0 answers

how to generate DTMF tones in j2me

I was wondering if anyone has come across a way to generate DTMF tones in J2ME. I am trying to generate DTMF tones in J2ME, and can't seem to find anything substantial out there. If anyone has any idea on where I would look for something like this,…
Nilanchala
  • 5,891
  • 8
  • 42
  • 72
0
votes
1 answer

J2ME video capture throws MediaException: Invalid locator: capture://video

I was trying to capture a video in a J2ME application with the following snippet private void createCamera() throws IOException, MediaException { videoComponent = VideoComponent.createVideoPeer("capture://video"); …
Sunday Okpokor
  • 721
  • 6
  • 18
0
votes
0 answers

What is the Structure of recorded data in j2me using audio/basic as type?

I am recording audio from microphone in a j2me phone to a ByteArrayOutputStream as follows p = Manager.createPlayer("capture://audio?encoding=pcm"); p.realize(); RecordControl rc = (RecordControl)p.getControl("RecordControl"); …
Allahjane
  • 1,920
  • 3
  • 24
  • 42
0
votes
1 answer

J2me Createplayer does not work on samsung phones

I am trying to create J2me application which will capture the image and upload it on the server. I have used following code for capture image. player = Manager.createPlayer("capture://video"); player.realize(); videoControl = (VideoControl)…
Rohit
  • 181
  • 1
  • 10