Skip to Content
Android Studio 4.2 Development Essentials - Java Edition
book

Android Studio 4.2 Development Essentials - Java Edition

by Neil Smyth
August 2021
Intermediate to advanced
782 pages
22h 37m
English
Packt Publishing
Content preview from Android Studio 4.2 Development Essentials - Java Edition

70. Video Playback on Android using the VideoView and MediaController Classes

One of the primary uses for smartphones and tablets is to provide access to online content. One key form of content widely used, especially in the case of tablet devices, is video.

The Android SDK includes two classes that make the implementation of video playback on Android devices extremely easy to implement when developing applications. This chapter will provide an overview of these two classes, VideoView and MediaController, before working through the creation of a video playback application.

70.1 Introducing the Android VideoView Class

By far the simplest way to display video within an Android application is to use the VideoView class. This is a visual component ...

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.
Start your free trial

You might also like

Android Studio 4.1 Development Essentials – Java Edition

Android Studio 4.1 Development Essentials – Java Edition

Neil Smyth

Publisher Resources

ISBN: 9781803238814Supplemental Content