Motorola MOTORAZR maxx V6 Developer's Manual page 73

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

Java ME Developer Guide
Chapter 10 - JSR-135 - Mobile Media API
JSR-135 - Mobile Media
10.1 JSR-135
The JSR-135 Mobile Media APIs feature sets are defined for different types of media.
The media defined are as follows:
Tone Sequence
Sampled Audio
MIDI
Interactive MIDI
When a player is created for a particular type, it must follow the guidelines and con-
trol types listed in the sections outlined below.
Code Sample 2 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/mp3");
}
catch (Exception e)
{
System.out.println("FAILED: exception for createPlayer: " + e.toString());
DRAFT - Subject to Change
10
API
[73/201]

Advertisement

Table of Contents
loading

Table of Contents