A builder for MediaQueueItem
objects.
| MediaQueueItem |
build()
Builds and returns the
MediaQueueItem
object.
|
| MediaQueueItem.Builder |
clearItemId()
Optional.
|
| MediaQueueItem.Builder |
setActiveTrackIds(long[] activeTrackIds)
Optional.
|
| MediaQueueItem.Builder |
setAutoplay(boolean autoplay)
Optional.
|
| MediaQueueItem.Builder | |
| MediaQueueItem.Builder |
setItemId(int itemId)
Sets the item ID.
|
| MediaQueueItem.Builder |
setPlaybackDuration(double playbackDuration)
Optional.
|
| MediaQueueItem.Builder |
setPreloadTime(double preloadTime)
Optional.
|
| MediaQueueItem.Builder |
setStartTime(double startTime)
Optional.
|
Constructs a new Builder with the given MediaInfo.
| IllegalArgumentException | If the MediaInfo
is null. |
|---|
Constructs a new Builder from the given JSONObject.
| JSONException | if any JSON parsing error. |
|---|
Copy constructor, reads defaults from provided MediaQueueItem.
| IllegalArgumentException | If the MediaQueueItem.getMedia()
is null. |
|---|
Builds and returns the MediaQueueItem
object.
| IllegalArgumentException | If all required fields have not been populated with valid values. |
|---|
Optional. Sets the item ID TO MediaQueueItem.INVALID_ITEM_ID.
Optional. Sets the list of active track IDs.
Optional. Sets the autoplay preference.
Optional. Sets the custom application-specific data.
Sets the item ID. This should not be called on the sender side.
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.
The default value is NaN, meaning unspecified.
If the value is NaN, the receiver will load the media from different positions depending on the stream type:
| IllegalArgumentException | If the start time is negative. |
|---|