Code Sample 2 Jsr 135 Mobile Media Api - Motorola V3x Technical Manual

2 cameras; 320x240 display
Hide thumbs Also See for V3x:
Table of Contents

Advertisement

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();
44

Code Sample 2 JSR 135 Mobile Media API

Advertisement

Table of Contents
loading

Table of Contents