Class: EditTracksInfoRequest

  • 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 and textTrackStyle.

  • The activeTrackIds property is an array of trackIds to be made active, or empty to deactivate all tracks.

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.