Motorola maxx V6 manual Draft Subject to Change 74/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 74
Image 74

Java ME Developer Guide

Chapter 10 - JSR-135 - Mobile Media API

}

//Obtain the information required to acquire the media resources try

{

player.realize();

}

catch (MediaException e)

{

System.out.println("FAILED: exception for realize: " + e.toString());

}

//Acquire exclusive resources, fill buffers with media data

try

{

player.prefetch();

}

catch (MediaException e)

{

System.out.println("FAILED: exception for prefetch: " + e.toString());

}

//Start the media playback try

{

player.start();

}

catch (MediaException e)

{

System.out.println("FAILED: exception for start: " + e.toString());

}

//Pause the media playback

try

{

player.stop();

}

catch (MediaException e)

{

System.out.println("FAILED: exception for stop: " + e.toString());

}

//Release the resources player.close();

DRAFT - Subject to Change [74/201]

Page 74
Image 74
Motorola maxx V6 manual Draft Subject to Change 74/201