A class that holds the information of the playing queue or media container.
Nested Class Summary
class | MediaQueueData.Builder | Builder class for constructing a MediaQueueData . |
@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
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
Constants
public static final int MEDIA_QUEUE_TYPE_ALBUM
A media type representing an album.
public static final int MEDIA_QUEUE_TYPE_AUDIO_BOOK
A media type representing an audio book.
public static final int MEDIA_QUEUE_TYPE_GENERIC
Generic or unspecified media type.
public static final int MEDIA_QUEUE_TYPE_LIVE_TV
A media type representing live TV.
public static final int MEDIA_QUEUE_TYPE_MOVIE
A media type representing a movie.
public static final int MEDIA_QUEUE_TYPE_PLAYLIST
A media type representing an audio playlist.
public static final int MEDIA_QUEUE_TYPE_PODCAST_SERIES
A media type representing a podcast series.
public static final int MEDIA_QUEUE_TYPE_RADIO_STATION
A media type representing a radio station.
public static final int MEDIA_QUEUE_TYPE_TV_SERIES
A media type representing a TV series.
public static final int MEDIA_QUEUE_TYPE_VIDEO_PLAYLIST
A media type representing a video playlist.
Public Methods
public boolean equals (Object other)
public MediaQueueContainerMetadata getContainerMetadata ()
Returns the additional description for the queue.
public String getEntity ()
Returns the queue deep link.
public List<MediaQueueItem> getItems ()
Returns the list of queue items. The item list should only be valid when sending the
MediaQueueData
in load requests. In all other cases, it should be null
.
public String getName ()
Returns the display name for the queue.
public String getQueueId ()
Returns the queue ID.
public int getQueueType ()
Returns the type of the queue.
public int getRepeatMode ()
Returns the repeat mode of the queue. Possible values include:
public int getStartIndex ()
Returns the index of the item that should play first. This is only valid for load requests.
public long getStartTime ()
Returns the playback start time, in milliseconds.
If unspecified, the default value is
MediaLoadRequestData.PLAY_POSITION_UNASSIGNED
.