Jsr 135 Mobile Media Api - Motorola E680 - Smartphone - GSM Developer's Manual

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

JSR 135 Mobile Media API

JSR 135 Mobile Media API

The JSR 135 Mobile Media APIs feature sets are defined for five different types of media.
The media defined is as follows:
When a player is created for a particular type, it will follow the guidelines and control types
listed in the sections outlined below.
The following is a code sample to show implementation of the JSR 135 Mobile Media API:
JSR 135
Player player;
// Create a media player, associate it with a stream
containing media data
try
{
player =
Manager.createPlayer(getClass().getResourceAsStream("MP3.mp3
"), "audio/mpeg");
}
catch (Exception e)
{
System.out.println("FAILED: exception for createPlayer:
" + e.toString());
}
// Obtain the information required to acquire the media
resources
try
46
Tone Sequence
Sampled Audio
MIDI
13

Advertisement

Table of Contents
loading

Table of Contents