The class used in load commands for specifying how a receiver application should load media.
MediaInfo, and
set MediaQueueData
to null.MediaQueueData.
Optionally, specify the information for the first item in MediaInfo.MediaQueueData
is specified, option
getCurrentTime() is ignored, and MediaQueueData.getStartTime()
is respected.MediaQueueData
can have empty items, but you must specify the entity so that the receiver app can fetch
the queue from the cloud using the entity.| class | MediaLoadRequestData.Builder | Builder class for MediaLoadRequestData. |
|
| double | PLAYBACK_RATE_MAX | The maximum value that can be used in
MediaLoadRequestData.Builder.setPlaybackRate(double). |
| double | PLAYBACK_RATE_MIN | The minimum value that can be used in
MediaLoadRequestData.Builder.setPlaybackRate(double). |
| long | PLAY_POSITION_UNASSIGNED | The special value for indicating a load request has no explicit start position. |
| boolean | |
| long[] |
getActiveTrackIds()
Returns the array of the active tracks.
|
| Boolean |
getAutoplay()
Returns the value of whether playback should start immediately.
|
| String |
getCredentials()
Returns the credentials string, as passed in with
MediaLoadOptions.Builder.setCredentials(String).
|
| String |
getCredentialsType()
Returns the credentials type string, as passed in with
MediaLoadOptions.Builder.setCredentialsType(String).
|
| long |
getCurrentTime()
Returns the initial playback position, in milliseconds from the beginning of
the stream.
|
| JSONObject |
getCustomData()
Returns the custom application-specific data to pass along with the load
request.
|
| MediaInfo |
getMediaInfo()
Returns the
MediaInfo
of the load request.
|
| double |
getPlaybackRate()
Returns the playback rate, as the multiplier of the normal playback rate.
|
| MediaQueueData |
getQueueData()
Returns the
MediaQueueData
of the load request.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel out, int
flags)
|
The maximum value that can be used in
MediaLoadRequestData.Builder.setPlaybackRate(double).
The minimum value that can be used in
MediaLoadRequestData.Builder.setPlaybackRate(double).
The special value for indicating a load request has no explicit start position.
If this value is used, non-live streams will be loaded from 0 and live streams will be loaded from the most recent position.
Returns the array of the active tracks. If the default value is
null.
Returns the value of whether playback should start immediately. The default value is
Boolean.TRUE.
Returns the credentials string, as passed in with
MediaLoadOptions.Builder.setCredentials(String).
Returns the credentials type string, as passed in with
MediaLoadOptions.Builder.setCredentialsType(String).
Returns the initial playback position, in milliseconds from the beginning of the stream. The default value is 0.
Returns the custom application-specific data to pass along with the load request.
Returns the playback rate, as the multiplier of the normal playback rate.
Returns the MediaQueueData
of the load request.