O'Reilly logo

Pro Android Media: Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets by Shawn Van Every

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MediaStore for Retrieving Video

As discussed in Chapter 1, Android provides a standard means for sharing data across applications. The ContentProvider class is the base class that enables this. Also as discussed, the classes that extend the concept of a ContentProvider for media are the various MediaStore classes. We previously looked at using the MediaStore for images and audio and their related metadata. The MediaStore for use with video behaves in much the same way.

MediaStore.Video is the nested class within the MediaStore class for use with video files in particular. Within MediaStore.Video is MediaStore.Video.Media, which contains the constants that specify the columns available in the MediaStore related to the video media itself, many ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required