| java.lang.Object | |
| ↳ | com.google.android.gms.cast.MediaQueueItem.Builder |
A builder for MediaQueueItem objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Builder with the given
MediaInfo. | |||||||||||
Constructs a new Builder from the given
JSONObject. | |||||||||||
Copy constructor, reads defaults from provided
MediaQueueItem. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Builds and returns the
MediaQueueItem object. | |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
Optional.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new Builder from the given JSONObject.
| JSONException | if any JSON parsing error. |
|---|
Copy constructor, reads defaults from provided MediaQueueItem.
| IllegalArgumentException | If the getMedia() is
null.
|
|---|
Builds and returns the MediaQueueItem object.
| IllegalArgumentException | If all required fields have not been populated with valid values. |
|---|
Optional. Sets the list of active track IDs.
Optional. Sets the autoplay preference.
Optional. Sets the custom application-specific data.
Optional. Sets the playback duration, in seconds.
Optional. Sets the preload hint, in seconds.
| IllegalArgumentException | If the preload time is negative. |
|---|
Optional. Sets the start position of the stream, in seconds.
| IllegalArgumentException | If the start time is negative. |
|---|