Motorola maxx V6 manual JSR-135 Mobile Media, Draft Subject to Change 73/201, ∙ Midi

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 73
Image 73

Java ME Developer Guide

Chapter 10 - JSR-135 - Mobile Media API

10 JSR-135 - Mobile Media

API

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 [73/201]

Page 73
Image 73
Motorola maxx V6 manual JSR-135 Mobile Media, Draft Subject to Change 73/201, ∙ Midi