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.

Get Learn Android App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.