public static class StandardRequest.Load extends StandardRequest
StandardRequest.GetAppAvailability, StandardRequest.GetStatus, StandardRequest.Launch, StandardRequest.Load, StandardRequest.MediaRequest, StandardRequest.Pause, StandardRequest.Play, StandardRequest.ResumeState, StandardRequest.Seek, StandardRequest.SetVolume, StandardRequest.Stop, StandardRequest.StopMedia, StandardRequest.VolumeRequestStandardMessage.CloseConnection, StandardMessage.Connect, StandardMessage.Origin, StandardMessage.Ping, StandardMessage.Pong| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
activeTrackIds
The
List of track IDs that are active. |
protected Boolean |
autoplay
If the autoplay parameter is specified and
true, the media
player will begin playing the content when it is loaded. |
protected String |
credentials
Optional user credentials
|
protected String |
credentialsType
Optional credentials type.
|
protected Double |
currentTime
Seconds since beginning of content.
|
protected Map<String,Object> |
customData
The custom application data to send to the remote application with
the load command
|
protected LoadOptions |
loadOptions
Additional load options
|
protected Media |
media
The
Media to load |
protected Double |
playbackRate
The media playback rate
|
protected QueueData |
queueData
The queue to load
|
requestId| Constructor and Description |
|---|
Load(List<Integer> activeTrackIds,
Boolean autoplay,
String credentials,
String credentialsType,
Double currentTime,
Map<String,Object> customData,
LoadOptions loadOptions,
Media media,
Double playbackRate,
QueueData queueData)
Creates a new request to load the specified
Media. |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getActiveTrackIds() |
Boolean |
getAutoplay() |
String |
getCredentials() |
String |
getCredentialsType() |
Double |
getCurrentTime() |
Map<String,Object> |
getCustomData() |
LoadOptions |
getLoadOptions() |
Media |
getMedia() |
Double |
getPlaybackRate() |
QueueData |
getQueueData() |
getRequestId, setRequestId@Nullable protected final List<Integer> activeTrackIds
List of track IDs that are active. If the array is not
provided, the default tracks will be active@Nullable protected final Boolean autoplay
true, the media
player will begin playing the content when it is loaded. Even if
autoplay is not specified, the media player implementation may choose
to begin playback immediately@Nullable protected final String credentialsType
cloud' is a reserved
type used by load requests that were originated by voice assistant
commands.@Nullable protected final Double currentTime
currentTime is not specified, the stream will start at
the live position.@Nullable protected final Map<String,Object> customData
@Nullable protected final LoadOptions loadOptions
public Load(@Nullable List<Integer> activeTrackIds, @Nullable Boolean autoplay, @Nullable String credentials, @Nullable String credentialsType, @Nullable Double currentTime, @Nullable Map<String,Object> customData, @Nullable LoadOptions loadOptions, @Nullable Media media, @Nullable Double playbackRate, @Nullable QueueData queueData)
Media.activeTrackIds - the List of track IDs that are active.
If the list is not provided, the default tracks will be
active.autoplay - true to ask the remote application to start
playback as soon as the Media has been loaded,
false to ask it to transition to a paused state
after loading. If autoplay is not specified, the
media player implementation may choose to begin playback
immediately.credentials - the user credentials, if any.credentialsType - the credentials type, if any. The type
'cloud' is a reserved type used by load requests
that were originated by voice assistant commands.currentTime - the position in seconds from the start for where
playback is to start in the loaded Media. If the
content is live content, and currentTime is not
specified, the stream will start at the live position.customData - the custom application data to send to the remote
application with the load command.loadOptions - the additional load options, if any.media - the Media to load.playbackRate - the media playback rate.queueData - the queue to load.IllegalArgumentException - If media is null.@Nullable public List<Integer> getActiveTrackIds()
List of track IDs that are active. If the list is
not provided, the default tracks will be active.@Nullable public Boolean getAutoplay()
true to ask the remote application to start playback
as soon as the Media has been loaded, false
to ask it to transition to a paused state after loading. If
autoplay is not specified, the media player
implementation may choose to begin playback immediately.@Nullable public String getCredentialsType()
cloud' is a
reserved type used by load requests that were originated by
voice assistant commands.@Nullable public Double getCurrentTime()
Media. If the
content is live content, and currentTime is not
specified, the stream will start at the live position.@Nullable public Map<String,Object> getCustomData()
@Nullable public LoadOptions getLoadOptions()
Copyright © 2022. All rights reserved.