Jsr 135 Mobile Media Api; Media Api - Motorola C381P J2ME Technical Manual

J2me developer guide
Table of Contents

Advertisement

9

JSR 135 Mobile Media API

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 Code Sample 4 shows the 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
{
player.realize();
}
Tone Sequence
Sampled Audio
MIDI
9
35

Advertisement

Table of Contents
loading

Table of Contents