MediaQueueData Stay organized with collections Save and categorize content based on your preferences.
Page Summary
MediaQueueData holds information about the playing queue or media container.
It includes nested classes for building MediaQueueData objects and defining media queue types.
Various constant values define different types of media queues, such as albums, movies, and playlists.
Public methods allow access to properties like container metadata, queue items, name, ID, type, repeat mode, start index, and start time.
The class also implements the Parcelable interface for serialization.
A class that holds the information of the playing queue or media container.
Nested Class Summary
| class | MediaQueueData.Builder | Builder class for constructing aMediaQueueData. | |
| @interface | MediaQueueData.MediaQueueType | The type of the media queue. | |
Constant Summary
| int | MEDIA_QUEUE_TYPE_ALBUM | A media type representing an album. |
| int | MEDIA_QUEUE_TYPE_AUDIO_BOOK | A media type representing an audio book. |
| int | MEDIA_QUEUE_TYPE_GENERIC | Generic or unspecified media type. |
| int | MEDIA_QUEUE_TYPE_LIVE_TV | A media type representing live TV. |
| int | MEDIA_QUEUE_TYPE_MOVIE | A media type representing a movie. |
| int | MEDIA_QUEUE_TYPE_PLAYLIST | A media type representing an audio playlist. |
| int | MEDIA_QUEUE_TYPE_PODCAST_SERIES | A media type representing a podcast series. |
| int | MEDIA_QUEUE_TYPE_RADIO_STATION | A media type representing a radio station. |
| int | MEDIA_QUEUE_TYPE_TV_SERIES | A media type representing a TV series. |
| int | MEDIA_QUEUE_TYPE_VIDEO_PLAYLIST | A media type representing a video playlist. |
Inherited Constant Summary
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Public Method Summary
| boolean | |
| MediaQueueContainerMetadata | getContainerMetadata() Returns the additional description for the queue. |
| String | getEntity() Returns the queue deep link. |
| List<MediaQueueItem> | getItems() Returns the list of queue items. |
| String | getName() Returns the display name for the queue. |
| String | getQueueId() Returns the queue ID. |
| int | getQueueType() Returns the type of the queue. |
| int | getRepeatMode() Returns the repeat mode of the queue. |
| int | getStartIndex() Returns the index of the item that should play first. |
| long | getStartTime() Returns the playback start time, in milliseconds. |
| int | hashCode() |
| void | writeToParcel(Parcel out, int flags) |
Inherited Method Summary
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Constants
public static final intMEDIA_QUEUE_TYPE_ALBUM
A media type representing an album.
public static final intMEDIA_QUEUE_TYPE_AUDIO_BOOK
A media type representing an audio book.
public static final intMEDIA_QUEUE_TYPE_GENERIC
Generic or unspecified media type.
public static final intMEDIA_QUEUE_TYPE_LIVE_TV
A media type representing live TV.
public static final intMEDIA_QUEUE_TYPE_MOVIE
A media type representing a movie.
public static final intMEDIA_QUEUE_TYPE_PLAYLIST
A media type representing an audio playlist.
public static final intMEDIA_QUEUE_TYPE_PODCAST_SERIES
A media type representing a podcast series.
public static final intMEDIA_QUEUE_TYPE_RADIO_STATION
A media type representing a radio station.
public static final intMEDIA_QUEUE_TYPE_TV_SERIES
A media type representing a TV series.
public static final intMEDIA_QUEUE_TYPE_VIDEO_PLAYLIST
A media type representing a video playlist.
Public Methods
public booleanequals(Object other)
publicMediaQueueContainerMetadatagetContainerMetadata()
Returns the additional description for the queue.
publicStringgetEntity()
Returns the queue deep link.
publicList<MediaQueueItem>getItems()
Returns the list of queue items. The item list should only be valid when sending theMediaQueueData in load requests. In all other cases, it should benull.
publicStringgetName()
Returns the display name for the queue.
publicStringgetQueueId()
Returns the queue ID.
public intgetQueueType()
Returns the type of the queue.
public intgetRepeatMode()
Returns the repeat mode of the queue. Possible values include:
public intgetStartIndex()
Returns the index of the item that should play first. This is only valid for load requests.
public longgetStartTime()
Returns the playback start time, in milliseconds.
If unspecified, the default value is MediaLoadRequestData.PLAY_POSITION_UNASSIGNED.
public inthashCode()
public voidwriteToParcel(Parcel out, int flags)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.