java.lang.Object | |
↳ | com.google.android.gms.cast.MediaQueueItem |
A class that aggregates information about an item in a media queue. Use
MediaQueueItem.Builder
to build an instance of this class.
MediaQueueItem
is used in two-way communication between a sender application and a
receiver application. Sender constructs them to load or insert a list of media items on the
receiver application. The MediaStatus
from the receiver also contains the list of items
represented as MediaQueueItem
.
Once loaded, the receiver will assign a unique item ID to each MediaQueueItem
, even if
the same media gets loaded multiple times.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaQueueItem.Builder | A builder for MediaQueueItem objects. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
double | DEFAULT_PLAYBACK_DURATION | A constant indicating the actual playback duration will not be overridden. | |||||||||
int | INVALID_ITEM_ID | A constant indicating the item ID is invalid or unassigned. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the list of active media tracks, or
null if none have been specified. | |||||||||||
Returns the autoplay state.
| |||||||||||
Returns the custom data, if any.
| |||||||||||
Returns the item ID, or
INVALID_ITEM_ID if not assigned. | |||||||||||
Returns the
MediaInfo information associated with this queue item. | |||||||||||
Returns the playback duration in seconds.
| |||||||||||
Returns the preload time in seconds.
| |||||||||||
Returns the start time of the item in seconds.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
A constant indicating the actual playback duration will not be overridden.
A constant indicating the item ID is invalid or unassigned.
Parameters | |
---|---|
other |
Object
|
Returns | |
---|---|
boolean |
Returns the list of active media tracks, or null
if none have been specified.
Returns | |
---|---|
long[] |
Returns the autoplay state. Default value is true
.
Returns | |
---|---|
boolean |
Returns the custom data, if any.
Returns | |
---|---|
JSONObject |
Returns the playback duration in seconds. Default value is
DEFAULT_PLAYBACK_DURATION
.
Returns | |
---|---|
double |
Returns the preload time in seconds. Default value is 0.
Returns | |
---|---|
double |
Returns the start time of the item in seconds. Default value is 0.
Returns | |
---|---|
double |
Returns | |
---|---|
int |
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|