MediaStore.Video.Media

public static final class MediaStore.Video.Media
extends Object implements MediaStore.Video.VideoColumns

java.lang.Object
   ↳ android.provider.MediaStore.Video.Media


Summary

Constants

String CONTENT_TYPE

The MIME type for this table.

String DEFAULT_SORT_ORDER

The default sort order for this table

Inherited constants

Fields

public static final Uri EXTERNAL_CONTENT_URI

The content:// style URI for the "primary" external storage volume.

public static final Uri INTERNAL_CONTENT_URI

The content:// style URI for the internal storage.

Public constructors

Media()

Public methods

static Uri getContentUri(String volumeName)

Get the content:// style URI for the video media table on the given volume.

static Uri getContentUri(String volumeName, long id)

Get the content:// style URI for a single row in the videos table on the given volume.

Inherited methods

Constants

CONTENT_TYPE

Added in API level 1
public static final String CONTENT_TYPE

The MIME type for this table.

Constant Value: "vnd.android.cursor.dir/video"

DEFAULT_SORT_ORDER

Added in API level 1
public static final String DEFAULT_SORT_ORDER

The default sort order for this table

Constant Value: "title"

Fields

EXTERNAL_CONTENT_URI

Added in API level 1
public static final Uri EXTERNAL_CONTENT_URI

The content:// style URI for the "primary" external storage volume.

INTERNAL_CONTENT_URI

Added in API level 1
public static final Uri INTERNAL_CONTENT_URI

The content:// style URI for the internal storage.

Public constructors

Media

Added in API level 1
public Media ()

Public methods

getContentUri

Added in API level 1
public static Uri getContentUri (String volumeName)

Get the content:// style URI for the video media table on the given volume.

Parameters
volumeName String: the name of the volume to get the URI for

Returns
Uri the URI to the video media table on the given volume

getContentUri

Added in API level 30
public static Uri getContentUri (String volumeName, 
                long id)

Get the content:// style URI for a single row in the videos table on the given volume.

Parameters
volumeName String: the name of the volume to get the URI for This value cannot be null.

id long: the video to get the URI for

Returns
Uri the URI to the videos table on the given volume This value cannot be null.