Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, I showed you how to
• Play a simple video
• Play a sound effect when a button is pressed
• Take a previously created service interface and create a functional media player from it
You should now be comfortable with the essentials for media playback. If you’re looking to go further with videos (which I hope you are), you’ll want to look into using a controller to modify the state of the video view.
Your next step to expand the media playback service is to think about how you’d pass arrays of IDs (playlists) and how you’d deal with updating those playlists on the fly (as users change them).
Android can be a very powerful media platform if you’re careful and treat it with care. Go forth and make a crop of better music players—if for no other reason than so I can use them myself.