Motorola E680 - Smartphone - GSM Developer's Manual page 47

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

13
JSR 135 Mobile Media API
{
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();
47

Advertisement

Table of Contents
loading

Table of Contents