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 ...
Get Pro Android Media: Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets 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.