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

Does J2ME Media Player on Nokia E65 work?

I'm trying to write a simple media playback application in J2ME. Currently I'm starting with the most simple thing, I just want to play a wav file from resources included in the jar file. I'm using this simple code: DataInputStream wav = new…
Jarek
  • 235
  • 2
  • 12
6
votes
3 answers

Alternatives to rotating buffers into Players in J2ME?

Due to (quite annoying) limitations on many J2ME phones, audio files cannot be played until they are fully downloaded. So, in order to play live streams, I'm forced to download chunks at a time, and construct ByteArrayInputStreams, which I then feed…
zildjohn01
  • 11,339
  • 6
  • 52
  • 58
5
votes
4 answers

Playing Audio with J2ME

What is the best way to play audio utilzing the J2ME Media libary? For example, should I make use of the MMAPI or should I just use the Midlet's platformRequest(String s) method?
Paradius
  • 7,949
  • 11
  • 32
  • 38
5
votes
3 answers

Full Resolution Camera Access in j2me

I'm trying to do an image capture on a high end Nokia phone (N95). The phone's internal camera is very good (4 megapixels) but in j2me I only seem to be able to get a maximum of 1360x1020 image out. I drew largely from this example…
Cory
  • 22,772
  • 19
  • 94
  • 91
4
votes
1 answer

Getting an exception when recording audio in J2me

I am getting a exception when I am recording a audio in Nokia C1. Below is the following exception I am getting: Error2: javax.microediting.media.MediaException: MUS Can anyone help me in removing this exception or where am I going wrong? Below, I…
sam
  • 51
  • 5
4
votes
2 answers

Cannot replay sound in J2ME

I have problem restart sound in J2ME. I want to create player in constructor, then call playExplosion() to play it, but it only plays once. I'm using Wireless Toolkit. Sound class public class Sound () { private Player playerExplosion; …
Hung Vu
  • 41
  • 1
3
votes
3 answers

Blackberry Audio Recording Sample Code

Does anyone know of a good repository to get sample code for the BlackBerry? Specifically, samples that will help me learn the mechanics of recording audio, possibly even sampling it and doing some on the fly signal processing on it? I'd like to…
Sam
  • 386
  • 5
  • 15
3
votes
3 answers

Deleting a File using J2ME throws an IOException

I am attempting to delete a file using J2ME's FileConnection.delete() method, but I an IOException is being thrown each time I call the delete() method. I have written a conditional statement to verify the existence of the file, but irregardless of…
Paradius
  • 7,949
  • 11
  • 32
  • 38
3
votes
2 answers

Is there a way to enumerate the video devices on a Java ME phone?

I recently downloaded a barcode reading application for my phone, an LG KU990i (AKA the Viewty) However, there's a problem that renders the application nearly useless: the Viewty has 2 cameras -- the main one, and a secondary camera located on the…
Ken Keenan
  • 9,818
  • 5
  • 32
  • 49
3
votes
0 answers

Media cannot start while another media is active

I am developing an application in BlackBerry in which video is to be played from the SDCard. But I am getting Media Exception such as Media cannot start while another media is active. When I debugged the app found exception thrown on player.start()…
AkashG
  • 7,868
  • 3
  • 28
  • 43
3
votes
1 answer

Streaming Video with Blackberry Simulator

So, I wrote a quick little app for the iphone that takes in an http URL, and plays the .mp4 video located at that URL. It does more than that, of course, but that's the meat of it. Naturally, I wanted to have it on more than just a single mobile…
J.R.
  • 5,789
  • 11
  • 55
  • 78
3
votes
1 answer

How to simulate camera midlet in Nokia C6?

I need to simulate the behaviour of the default camera midlet from Nokia. It's for Nokia C6, and I am writing it in J2ME. I use MMAPI, the problem is the size of VideoControl item, I made it videoControl.setDisplayFulscreen(true); but it ain't…
TomasS
  • 111
  • 1
  • 1
  • 3
3
votes
2 answers

Notification sound not playing in J2ME

I am working on a J2ME application. I am using Nokia 6131 NFC phone. I am using NetBeans IDE. I have 4 forms and I am playing some notification sounds for the user while filling the form. The problem is sound goes off suddenly after 3 to 4 min and…
Muhammad Tariq
  • 3,318
  • 5
  • 38
  • 42
3
votes
1 answer

Unable to open camera on samsung phone in j2me

I have written following piece of code. It is used to create camera player. I tested it on nokia phones. It's working fine and I am able to see camera and use its functionality. But the issue is that when the code is tested on samsung phone it…
Chetan Khilare
  • 285
  • 1
  • 3
  • 14
2
votes
1 answer

Playing audio on CDC device j2me

I have a j2me app built for a CDC device. I have used Personal profile to display the UI. However now I need to play audio. AFAIK in j2me I can play audio only through J2me MMAPI i.e JSR135. But on my device I don't have this. So can someone provide…
Abhilasha
  • 929
  • 1
  • 17
  • 37
1
2 3 4 5 6