Motorola E680 Technical Manual - Page 46
JSR 135 Mobile Media API
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 46 highlights
13 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: • Tone Sequence • Sampled Audio • MIDI 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