(Mảng số có giá trị không rỗng hoặc không xác định)
Mảng mã theo dõi kênh cần hoạt động. Nếu bạn không cung cấp chính sách này,
các kênh đang hoạt động sẽ không thay đổi. Nếu mảng trống, sẽ không có kênh nào hoạt động.
customData
(Đối tượng không rỗng hoặc không xác định)
Dữ liệu dành riêng cho ứng dụng của yêu cầu này. Phương thức này giúp người gửi và người nhận dễ dàng mở rộng giao thức truyền thông mà không phải sử dụng không gian tên mới với các thông báo tuỳ chỉnh.
Gắn cờ để bật hoặc tắt chế độ văn bản.
Nếu đặt là false, thì chế độ này sẽ tắt mọi đoạn văn bản. Còn nếu là true, thao tác này sẽ bật đoạn văn bản đầu tiên hoặc các đoạn văn bản đang hoạt động trước đó.
Cờ này sẽ bị bỏ qua nếu bạn cung cấp giá trị ActiveTrackIds hoặc ngôn ngữ.
isSuggestedLanguage
(Boolean hoặc không xác định)
Cho biết ngôn ngữ được cung cấp không phải là yêu cầu rõ ràng của người dùng mà được suy ra từ ngôn ngữ dùng trong truy vấn bằng giọng nói.
Chế độ này cho phép ứng dụng nhận sử dụng lựa chọn ưu tiên mà người dùng đã lưu thay vì ngôn ngữ nói.
language
(chuỗi hoặc không xác định)
Ngôn ngữ dành cho các kênh cần hoạt động. Trường ngôn ngữ sẽ được ưu tiên hơn so với ActiveTrackIds nếu bạn chỉ định cả hai.
mediaSessionId
(số hoặc không xác định)
Mã của phiên phát nội dung đa phương tiện mà yêu cầu áp dụng.
Một số để đồng bộ hoá tất cả các lệnh trong hàng đợi.
Nếu được cung cấp cho một lệnh trong hàng đợi, SDK sẽ xác minh số thứ tự mới nhất của hàng đợi khớp với yêu cầu.
Hiện tạiseqNumber được cung cấp như một phần của các thông báo đã thay đổi trong hàng đợi gửi đi.
Kiểu đoạn văn bản được yêu cầu. Nếu bạn không cung cấp kiểu hiện có, hệ thống sẽ sử dụng kiểu hiện có (nếu chưa cung cấp kiểu nào trong các lệnh gọi trước đó, thì đó sẽ là kiểu của trình nhận mặc định).
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eEditTracksInfoRequestData\u003c/code\u003e is a class used for media event requests to edit track information, such as active tracks and text track settings.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eactiveTrackIds\u003c/code\u003e, \u003ccode\u003elanguage\u003c/code\u003e, and \u003ccode\u003etextTrackStyle\u003c/code\u003e to specify desired track modifications.\u003c/p\u003e\n"],["\u003cp\u003eThe request data can also include \u003ccode\u003ecustomData\u003c/code\u003e for application-specific needs and \u003ccode\u003emediaSessionId\u003c/code\u003e to target a specific media session.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eenableTextTracks\u003c/code\u003e can be used to enable or disable text tracks, while \u003ccode\u003eisSuggestedLanguage\u003c/code\u003e helps the receiver app differentiate between user specified or inferred language.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits properties like \u003ccode\u003erequestId\u003c/code\u003e, \u003ccode\u003esequenceNumber\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e from the \u003ccode\u003ecast.framework.messages.RequestData\u003c/code\u003e parent class.\u003c/p\u003e\n"]]],["`EditTracksInfoRequestData` manages media track adjustments. Key actions include setting `activeTrackIds` to control which tracks are active, using the `language` field to prioritize track selection, and enabling/disabling text tracks with `enableTextTracks`. It also supports `customData` for application-specific information. `isSuggestedLanguage` allows for inferred language preferences. `mediaSessionId`, `requestId`, and `sequenceNumber` support request tracking, with `textTrackStyle` managing text track display.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).EditTracksInfoRequestData \nclass static\n\nMedia event EDIT_TRACKS_INFO request data.\n\nConstructor\n\nEditTracksInfoRequestData\n\nnew\nEditTracksInfoRequestData()\n\nExtends\n: [cast.framework.messages.RequestData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData)\n\nProperties\n\nactiveTrackIds\n\n(non-null Array of number or undefined)\n\nArray of the Track trackIds that should be active. If it is not provided,\nthe active tracks will not change. If the array is empty, no track will\nbe active.\n\ncustomData\n\n(non-null Object or undefined)\n\nApplication-specific data for this request. It enables the sender and\nreceiver to easily extend the media protocol without having to use a new\nnamespace with custom messages.\n\nInherited from\n: [cast.framework.messages.RequestData#customData](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#customData)\n\nenableTextTracks\n\n(boolean or undefined)\n\nFlag to enable or disable text tracks.\nIf false it will disable all text tracks, if true it will enable the\nfirst text track, or the previous active text tracks.\nThis flag is ignored if activeTrackIds or language is provided.\n\nisSuggestedLanguage\n\n(boolean or undefined)\n\nIndicates that the provided language was not explicit user request,\nbut rather inferred from used language in voice query.\nIt allows receiver apps to use user saved preference instead of\nspoken language.\n\nlanguage\n\n(string or undefined)\n\nLanguage for the tracks that should be active. The language field will\ntake precedence over activeTrackIds if both are specified.\n\nmediaSessionId\n\n(number or undefined)\n\nId of the media session that the request applies to.\n\nInherited from\n: [cast.framework.messages.RequestData#mediaSessionId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#mediaSessionId)\n\nrequestId\n\nnumber\n\nId of the request, used to correlate request/response.\n\nInherited from\n: [cast.framework.messages.RequestData#requestId](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#requestId)\n\nsequenceNumber\n\n(number or undefined)\n\nA number to synchronize all queue commands.\nIf provided for a queue command, the SDK will verify the queue latest\nsequence number match the request.\nCurrent sequenceNumber is provided as part of outgoing queue changed\nmessages.\n\nInherited from\n: [cast.framework.messages.RequestData#sequenceNumber](/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#sequenceNumber)\n\ntextTrackStyle\n\n([cast.framework.messages.TextTrackStyle](/cast/docs/reference/web_receiver/cast.framework.messages.TextTrackStyle) or undefined)\n\nThe requested text track style. If it is not provided the existing style\nwill be used (if no style was provided in previous calls, it will be the\ndefault receiver style)."]]