1 / 8

Mobile Media API

Mobile Media API. It provides a framework for embedded multimedia facilities in java enabled mobile devices. Introduction. MMAPI is a specification of the Java Technology for Wireless Industry(JTWI) specification (JSR-135) provided by JCP(Java Community Process).

alena
Download Presentation

Mobile Media API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mobile Media API It provides a framework for embedded multimedia facilities in java enabled mobile devices.

  2. Introduction • MMAPI is a specification of the Java Technology for Wireless Industry(JTWI) specification (JSR-135) provided by JCP(Java Community Process). • MMAPI provides a high level interface to provide specific HTTP, Audio & Video. • MMAPI are compatible with both CLDC & CDC.

  3. Features • MMAPI provides support for various multimedia capabilities , such as tone generation, audio and video playback. • MMAPI requires limited resources, very less memory and processing capabilities. • Its is not protocol or format specific, it supports most of the multimedia capable audio & video formats such as MP3 & WAV. • It provides extensible & flexible framework, so new features can be added to it, without making any modification to old version API.

  4. Architecture of MMAPI • It consist of DataSource, Player, Manager and Control. Provides data provides Control Creates Player Control DataSource Manager

  5. Description of Major Parts • Player: Controls and reads the data provided by the DataSource. Its life Cycle includes five states, these are UNREALIZED, REALIZED, PREFETCHED, STARTED & CLOSED. This object is stored in heap memory. • Life Cycle of a player started in unrealized state and it does not have enough information to acquire. • The realized state helps the player to acquire media sources and after that it changes the state from unrealized to realized. • In prefetched state it acquire resources and fills buffer data. After that it enters into Started State. Then the stop() is use to stop the player and in close state it releases the acquired resources.

  6. Major parts of mmapi Arch. • DataSource: Consist of process of protocol handling and hides the detail of processing data. it can be created from either an input stream instance or a URL. • Controls: Provides control over the functionality of player. • Manager: It represents static factory class. The createPlayer() method of the Manage class creates an instance of player

  7. MMAPI Packages • It provides following three packages: • The javax.microedition.media Package • The javax.microedition.media.control package • The javax.microedition.media.protocol package All the above packages are consist of useful classes and interfaces, such as player interface, ToneControl interface, DataSource class etc.

  8. Using MMAPI • Playing Audio file – Refer AudioMidlet.java • Playing Video file – Refer VideoMidlet.java

More Related