Google is committed to advancing racial equity for Black communities. See how.

MediaQueueItemWriter

public class MediaQueueItemWriter extends Object

The modifier to modify MediaQueueItem.

Public Constructor Summary

Public Method Summary

MediaQueueItemWriter
setActiveTrackIds(long[] activeTrackIds)
Sets the active track IDs for this item.
MediaQueueItemWriter
setAutoplay(boolean autoplay)
Sets the autoplay for this item.
MediaQueueItemWriter
setCustomData(JSONObject customData)
Sets the custom data for this item.
MediaQueueItemWriter
setItemId(int itemId)
Sets the item ID for this item.
MediaQueueItemWriter
setMedia(MediaInfo mediaInfo)
Sets the MediaInfo for this item.
MediaQueueItemWriter
setPlaybackDuration(double playbackDuration)
Sets the playback duration for this item.
MediaQueueItemWriter
setPreloadTime(double preloadTime)
Sets the preload time for this item.
MediaQueueItemWriter
setStartTime(double startTime)
Sets the start time for this item.

Inherited Method Summary

Public Constructors

public MediaQueueItemWriter (MediaQueueItem mediaQueueItem)

Public Methods

public MediaQueueItemWriter setActiveTrackIds (long[] activeTrackIds)

Sets the active track IDs for this item.

public MediaQueueItemWriter setAutoplay (boolean autoplay)

Sets the autoplay for this item.

public MediaQueueItemWriter setCustomData (JSONObject customData)

Sets the custom data for this item.

public MediaQueueItemWriter setItemId (int itemId)

Sets the item ID for this item.

You can use autoGenerateItemId() to auto-generate item IDs.

public MediaQueueItemWriter setMedia (MediaInfo mediaInfo)

Sets the MediaInfo for this item.

public MediaQueueItemWriter setPlaybackDuration (double playbackDuration)

Sets the playback duration for this item.

public MediaQueueItemWriter setPreloadTime (double preloadTime)

Sets the preload time for this item.

public MediaQueueItemWriter setStartTime (double startTime)

Sets the start time for this item.