The modifier to override the base
auto-generated from MediaSession, and provide additional status that are not in
The overrides in this class will be used whenever the library needs to generate a
Public Method Summary
Inherited Method Summary
public void clear ()
Clears all overrides in the modifier.
public JSONObject getCustomData ()
Returns the custom data to override.
public Integer getIdleReason ()
Returns the idle reason to override.
public MediaLiveSeekableRange getLiveSeekableRange ()
public Integer getLoadingItemId ()
Returns the ID of the current item being loaded to override.
public MediaInfoModifier getMediaInfoModifier ()
public Double getPlaybackRate ()
Returns the playback rate to override.
public Integer getPlayerState ()
Returns the player state to override.
public Integer getPreloadedItemId ()
Returns the ID of the item that has been preloaded to override.
public Long getStreamPosition ()
Returns the stream position to override.
Returns the supported media commands to override.
public Boolean isPlayingAd ()
Returns whether the receiver is playing ad to override.
public MediaStatusModifier setIdleReason (Integer idleReason)
Sets the idle reason to override the auto-generated value.
public MediaStatusModifier setIsPlayingAd (Boolean isPlayingAd)
Sets whether the receiver is playing ad.
public MediaStatusModifier setLiveSeekableRange (MediaLiveSeekableRange liveSeekableRange)
public MediaStatusModifier setLoadingItemId (Integer loadingItemId)
Sets the ID of the current item being loaded.
public MediaStatusModifier setMediaCommandSupported (long command, Boolean isSupported)
Sets an override to specify whether a media command is supported.
|command||the Command to override, which is one of the
|isSupported||whether the command is supported. Specifying
public void setMediaInfoModifier (MediaInfoModifier mediaInfoModifier)
public MediaStatusModifier setPlaybackRate (Double playbackRate)
Sets the playback rate to override the auto-generated value.
public MediaStatusModifier setPlayerState (Integer playerState)
Sets the player state to override the auto-generated value.
public MediaStatusModifier setPreloadedItemId (Integer preloadedItemId)
Sets the ID of the item that has been preloaded.
public MediaStatusModifier setStreamPosition (Long streamPosition)
Sets the stream position to override the auto-generated value.