Java Reference
In-Depth Information
Using the MMAPI to render multimedia is simple; you must follow these four steps:
1. Create a Player instance using the Manager class, and reference a path to a specific
piece of media.
2. Permit the Player instance to obtain any necessary hardware resources required to
render the media.
3. Obtain any necessary Control instances to control or configure the Player instance.
4. Play the media.
Because the MMAPI implementation typically wraps dedicated hardware resources
(such as RAM, dedicated DSPs, or dedicated coprocessors) that other processes on the
device might require, it's not enough to instantiate a Player instance. Instead, a Player
instance can be in one of five states, giving you programmatic control over the potentially
time-consuming process of obtaining necessary system resources (and permitting you to
better share those scarce resources with other applications on the device). Figure 16-2
shows how these states interact.
Figure 16-2. The states of a Player instance
 
Search WWH ::




Custom Search