The writer class to make modifications on aMediaStatus
instance.
Public Method Summary
MediaInfoWriter | |
MediaStatus |
getMediaStatus()
Returns the wrapped
MediaStatus
object.
|
MediaStatusWriter |
setActiveTrackIds(long[] activeTrackIds)
Sets the list of active track IDs.
|
MediaStatusWriter | |
MediaStatusWriter |
setCurrentItemId(int currentItemId)
Sets the item ID of the item that that was active in the queue (it may not be
playing) at the time the media status change happened.
|
MediaStatusWriter | |
MediaStatusWriter |
setIdleReason(int idleReason)
Sets the player state idle reason.
|
MediaStatusWriter |
setIsPlayingAd(boolean isPlayingAd)
Sets whether an ad is playing on the receiver.
|
MediaStatusWriter |
setLiveSeekableRange(MediaLiveSeekableRange
liveSeekableRange)
Sets the seekable range of a live stream.
|
MediaStatusWriter |
setLoadingItemId(int loadingItemId)
Sets the item ID of the item that is currently loading (but isn't active in the
queue).
|
MediaStatusWriter | |
MediaStatusWriter |
setMuteState(boolean muteState)
Sets the stream's mute state.
|
MediaStatusWriter |
setPlaybackRate(double playbackRate)
Sets the current stream playback rate.
|
MediaStatusWriter |
setPlayerState(int playerState)
Sets the current media player state.
|
MediaStatusWriter |
setPreloadedItemId(int preloadedItemId)
Sets the next item has been preloaded this returns the preloaded item ID.
|
MediaStatusWriter | |
MediaStatusWriter | |
MediaStatusWriter |
setQueueRepeatMode(int queueRepeatMode)
Sets the repeat mode of the media queue.
|
MediaStatusWriter |
setStreamPosition(long streamPosition)
Sets the current stream position, in milliseconds.
|
MediaStatusWriter |
setStreamVolume(double streamVolume)
Sets the stream's volume.
|
MediaStatusWriter |
setSupportedMediaCommands(long supportedMediaCommands)
Sets the supported media commands.
|
MediaStatusWriter |
Inherited Method Summary
Public Methods
publicMediaInfoWriter getMediaInfoWriter()
Returns aMediaInfoWriter
to modify theMediaInfo
in
thisMediaStatus
.
If theMediaStatus
doesn't haveMediaInfo
,
then this method returnsnull
,and you should call
setMediaInfo(MediaInfo)
to set theMediaInfo
directly.
publicMediaStatus getMediaStatus()
Returns the wrappedMediaStatus
object.
publicMediaStatusWriter setActiveTrackIds(long[] activeTrackIds)
Sets the list of active track IDs. It can benull
.
publicMediaStatusWriter setAdBreakStatus(AdBreakStatus adBreakStatus)
Sets theAdBreakStatus
.
publicMediaStatusWriter setCurrentItemId(int currentItemId)
Sets the item ID of the item that that was active in the queue (it may not be playing) at the time the media status change happened.
publicMediaStatusWriter setCustomData(JSONObject customData)
Sets any custom data that is associated with the media item.
publicMediaStatusWriter setIdleReason(int idleReason)
Sets the player state idle reason. This value is only meaningful if the player state
is in factMediaStatus.PLAYER_STATE_IDLE
.
publicMediaStatusWriter setIsPlayingAd(boolean isPlayingAd)
Sets whether an ad is playing on the receiver.
publicMediaStatusWriter setLiveSeekableRange(MediaLiveSeekableRange liveSeekableRange)
Sets the seekable range of a live stream.
publicMediaStatusWriter setLoadingItemId(int loadingItemId)
Sets the item ID of the item that is currently loading (but isn't active in the queue).
publicMediaStatusWriter setMediaInfo(MediaInfo mediaInfo)
Sets theMediaInfo
for this item.
publicMediaStatusWriter setMuteState(boolean muteState)
Sets the stream's mute state.
publicMediaStatusWriter setPlaybackRate(double playbackRate)
Sets the current stream playback rate.
publicMediaStatusWriter setPlayerState(int playerState)
Sets the current media player state.
publicMediaStatusWriter setPreloadedItemId(int preloadedItemId)
Sets the next item has been preloaded this returns the preloaded item ID.
publicMediaStatusWriter setQueueData(MediaQueueData queueData)
Sets theMediaQueueData
.
publicMediaStatusWriter setQueueItems(List<MediaQueueItem> queueItems)
Sets the list ofMediaQueueItem
.
publicMediaStatusWriter setQueueRepeatMode(int queueRepeatMode)
Sets the repeat mode of the media queue.
publicMediaStatusWriter setStreamPosition(long streamPosition)
Sets the current stream position, in milliseconds.
publicMediaStatusWriter setStreamVolume(double streamVolume)
Sets the stream's volume.
publicMediaStatusWriter setSupportedMediaCommands(long supportedMediaCommands)
Sets the supported media commands.
publicMediaStatusWriter setVideoInfo(VideoInfo videoInfo)
Sets theVideoInfo
.