Class: EditTracksInfoRequest

  • EditTracksInfoRequest is used to modify the style or status of text tracks in a media stream.

  • It allows specifying active tracks using activeTrackIds and customizing style using textTrackStyle.

  • Requests can fail if provided trackId values do not match existing tracks.

  • Modifying text track style is possible 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.