Summary
The several different states that a Player instance goes through in processing and playing media data allows developers to gain control over these states, provide feedback, and process events at these stages. These states are UNREALIZED, REALIZED, PREFETCHED, STARTED, and CLOSED, and the transitions between them are well defined and accessible.
In this chapter, you learned the background behind these states, the how and why of the transitions that take place between them, and how to respond to the various events generated during these transitions. You learned to create an event handling class and also how to listen to custom events.
The next chapter will introduce you to accessing media data over the network using MMAPI, a task that must be handled efficiently and cleanly for responsive multimedia MIDlets.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Vikram Goyal
About this chapter
Cite this chapter
(2006). Media Player Lifecycle and Events. In: Pro Java ME MMAPI. Apress. https://doi.org/10.1007/978-1-4302-0157-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0157-1_4
Publisher Name: Apress
Print ISBN: 978-1-59059-639-5
Online ISBN: 978-1-4302-0157-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)