[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eEditTracksInfoRequest\u003c/code\u003e is used to modify the style or status of text tracks in a media stream.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying active tracks using \u003ccode\u003eactiveTrackIds\u003c/code\u003e and customizing style using \u003ccode\u003etextTrackStyle\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequests can fail if provided \u003ccode\u003etrackId\u003c/code\u003e values do not match existing tracks.\u003c/p\u003e\n"],["\u003cp\u003eModifying text track style is possible even if no text track is currently active.\u003c/p\u003e\n"]]],["The `EditTracksInfoRequest` class modifies text track status or style. It accepts `activeTrackIds`, an array of track IDs to activate (or an empty array to deactivate all), and `textTrackStyle` to update the style. If `activeTrackIds` is not provided, track status is unchanged; if `textTrackStyle` isn't, the existing style is retained. Requests with invalid `trackId` will fail. A `requestId` property, which contains a number, is also part of the class.\n"],null,["# Class: EditTracksInfoRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).EditTracksInfoRequest\n===========================================================================================================================================\n\nclass static\n\nA request to modify the text tracks style or change the tracks status.\nIf a trackId does not match the existing trackIds the whole request\nwill fail and no status will change. It is acceptable to change the text\ntrack style even if no text track is currently active.\n\nConstructor\n-----------\n\n### EditTracksInfoRequest\n\nnew\nEditTracksInfoRequest(activeTrackIds, textTrackStyle)\n\n| #### Parameter ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| activeTrackIds | Optional Array of number Value must not be null. |\n| textTrackStyle | Optional [chrome.cast.media.TextTrackStyle](/cast/docs/reference/web_sender/chrome.cast.media.TextTrackStyle) Value must not be null. |\n\nProperties\n----------\n\n### activeTrackIds\n\nnullable Array of number\n\nArray of the Track trackIds that should be active. If it is not provided,\nthe active tracks will not change.\nIf the array is empty, no track will be active.\n\n### requestId\n\nnumber\n\n### textTrackStyle\n\nnullable [chrome.cast.media.TextTrackStyle](/cast/docs/reference/web_sender/chrome.cast.media.TextTrackStyle)\n\nThe requested text track style.\nIf it is not provided the existing style will be used."]]