Chapter 12
Digital Video in Android: Using the VideoView Class
In this chapter, we will take our newfound knowledge of Digital Video concepts, techniques, and formats that we learned in the previous chapter and apply that to actually implement digital video assets in our own Hello_World Android Application.
We will add in new Java code to our TravelPlanet.java Activity subclass to instantiate a MediaController object, so that we can play our video in the VideoView user interface element that we set up in our activity_travel.xml screen layout definition earlier on in this book.
We will cover how to play video that is a different aspect ratio than the source video and how to create and add video transport control user interface elements.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access