chrome.cast.media. LoadRequest
A request to load new media into the player.
Constructor
LoadRequest
new LoadRequest(mediaInfo)
Parameter |
|
---|---|
mediaInfo |
Media description. Value must not be null. |
Properties
activeTrackIds
nullable Array of number
Array of Track trackIds that should be active. If the array is not provided, the default tracks will be active. If two incompatible trackIds are provided (for example two active audio tracks) the command will fail with INVALID_PARAMETER.
atvCredentials
(string or undefined)
Alternate Android TV credentials.
If set, this will override the value set in credentials if the receiver is an Android TV app. On the receiver side, these credentials can be accessed from MediaLoadRequestData#getCredentials().
atvCredentialsType
(string or undefined)
Alternate Android TV credentials type.
If set, this will override the value set in credentialsType if the receiver is an Android TV app. On the receiver side, the credentials type can be accessed from MediaLoadRequestData#getCredentialsType().
autoplay
boolean
Whether the media will automatically play.
credentials
(string or undefined)
Optional user credentials.
credentialsType
(string or undefined)
Optional credentials type. The type 'cloud' is a reserved type used by load requests that were originated by voice assistant commands.
currentTime
nullable number
Seconds from the beginning of the media to start playback.
customData
nullable Object
Custom data for the receiver application.
media
non-null chrome.cast.media.MediaInfo
Media description.
playbackRate
(number or undefined)
The media playback rate.
queueData
(non-null chrome.cast.media.QueueData or undefined)
Queue data.
requestId
number
sessionId
nullable string
Identifies the application session that will load the media.
type
string