AI-generated Key Takeaways
-
EditTracksInfoRequest is used to modify text track styles or change track status.
-
The request fails if any trackId does not match existing trackIds.
-
You can change text track style even if no text track is active.
-
The constructor takes optional
activeTrackIds
andtextTrackStyle
. -
The
activeTrackIds
property is an array of trackIds to be made active, or empty to deactivate all tracks.
chrome.cast.media. EditTracksInfoRequest
A request to modify the text tracks style or change the tracks status. If a trackId does not match the existing trackIds the whole request will fail and no status will change. It is acceptable to change the text track style even if no text track is currently active.
Constructor
EditTracksInfoRequest
new EditTracksInfoRequest(activeTrackIds, textTrackStyle)
Parameter |
|
---|---|
activeTrackIds |
Optional Array of number Value must not be null. |
textTrackStyle |
Optional chrome.cast.media.TextTrackStyle Value must not be null. |
Properties
activeTrackIds
nullable Array of number
Array of the Track trackIds that should be active. If it is not provided, the active tracks will not change. If the array is empty, no track will be active.
requestId
number
textTrackStyle
nullable chrome.cast.media.TextTrackStyle
The requested text track style. If it is not provided the existing style will be used.