Motorola maxx V6 사용자 설명서

다운로드
페이지 201
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());
Java ME Developer Guide
Chapter 10 - JSR-135 - Mobile Media API
[73/201]
DRAFT - Subject to Change